Search:

Type: Posts; User: Norm

Search: Search took 0.12 seconds.

  1. Replies
    9
    Views
    3,998

    [SOLVED] Re: Set Invisible or close a frame

    Your last post: with 2 new Action Listener
    was confusing.
  2. Replies
    9
    Views
    3,998

    [SOLVED] Re: Set Invisible or close a frame

    I'm sure there are several ways you could do it. More ActionListeners sounds more complicated than the way I did it.
  3. Replies
    9
    Views
    3,998

    [SOLVED] Re: Set Invisible or close a frame

    No, that is not I meant. I meant to change the listener to something like this so when the button was pressed, setVisible(false) would execute and the window with the button would disappear.


    ...
  4. Replies
    9
    Views
    3,998

    [SOLVED] Re: Set Invisible or close a frame

    What happens when you call setVisible(false) for a visible window?

    Change your posted code to call setVisible(false) for the currently visible window. Don't do anything else, just call that...
  5. Replies
    9
    Views
    3,998

    [SOLVED] Re: Set Invisible or close a frame

    Please explain what happens/


    if(str == "OK")
    You should use the equals() method to compare the contents of Strings, not the == operator.
Results 1 to 5 of 5