Search:

Type: Posts; User: DaAznSmurf

Search: Search took 0.39 seconds.

  1. Replies
    18
    Views
    413

    Re: Help displaying a new string to GUI

    thank that stoped the windows from closing and actually does the replace, but a new error now :P lol
  2. Replies
    18
    Views
    413

    Re: Help displaying a new string to GUI

    alright then well thank you for your help, i don't have time to do test code and stuff, thanks again
  3. Replies
    18
    Views
    413

    Re: Help displaying a new string to GUI

    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?
  4. Replies
    18
    Views
    413

    Re: Help displaying a new string to GUI

    so i would put in
    Gui.displayArea.setText(newString);
    but when I do all my windows still close when using the search and replace
  5. Replies
    18
    Views
    413

    Re: Help displaying a new string to GUI

    oh sorry, I want newString from DialogBox to pass back to displayArea in my GUI
  6. Replies
    18
    Views
    413

    Re: Help displaying a new string to 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...
  7. Replies
    18
    Views
    413

    Re: Help displaying a new string to GUI

    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...
  8. Replies
    18
    Views
    413

    Re: Help displaying a new string to GUI

    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...
  9. Replies
    18
    Views
    413

    Help displaying a new string to GUI

    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...
Results 1 to 9 of 9