thank that stoped the windows from closing and actually does the replace, but a new error now :P lol
Type: Posts; User: DaAznSmurf
thank that stoped the windows from closing and actually does the replace, but a new error now :P lol
alright then well thank you for your help, i don't have time to do test code and stuff, thanks again
are you running the second set of code i posted? because when i run that one all my windows still close....
do you also do the search and replace?
so i would put in
Gui.displayArea.setText(newString);
but when I do all my windows still close when using the search and replace
oh sorry, I want newString from DialogBox to pass back to displayArea in my GUI
oh sorry the code should be like this
import java.io.*;
import java.util.Scanner;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class Gui extends JFrame...
So the variable name for holding the string from the GUI is copyOfInputStream and the variable holding the new string is newString. And what I need is for newString to display in the Original window...
The original window is the first window that opens when you run the program, it's the one that displays the text, from the text file that you open. What's suppose to happen is when you use the search...
So my assignment was to write a search and replace GUI without using the replaceAll method. My problem is in my search and replace code I am able to display the new string in a printout but I'm...