Search:

Type: Posts; User: jps

Search: Search took 0.14 seconds.

  1. Replies
    44
    Views
    4,610

    Re: how can i make a jbutton to close a jframe??

    Window.setVisible(boolean) will make the window hide or show but not close.
  2. Replies
    44
    Views
    4,610

    Re: how can i make a jbutton to close a jframe??

    I am happy you figured it out and got it working.
    Please post the final solution for future readers and mark the thread as solved if all is well
  3. Replies
    44
    Views
    4,610

    Re: how can i make a jbutton to close a jframe??

    Please do not create another thread with the same question. This is your third try.
    You can refer to the answer given in post #19. If you do not understand it, ask a question.
  4. Replies
    44
    Views
    4,610

    Re: how can i make a jbutton to close a jframe??

    Use an action command to help filter. If you are using 7 or later you can switch on the String
  5. Replies
    44
    Views
    4,610

    Re: how can i make a jbutton to close a jframe??

    Glad you got it working the way you want.


    See post number 19 in this thread for the answer to this question...
    It sounds to me like you have a problem filtering your events.

    --- Update ---
    ...
  6. Replies
    44
    Views
    4,610

    Re: how can i make a jbutton to close a jframe??

    The System class does not have a dispose() method. Consult the API for the methods of the class.
    If you are using a different class named System, that is a poorly chosen name for a class, and it...
  7. Replies
    44
    Views
    4,610

    Re: how can i make a jbutton to close a jframe??

    If you want advice, answer the questions you were asked.
    If you want help, post what you have tried and explain why it is not satisfactory to you.
  8. Replies
    44
    Views
    4,610

    Re: how can i make a jbutton to close a jframe??

    The simple solution would be to provide a straight forward answer to a question when one is asked. For example:
    You have been asked several times, when the button is clicked and the jframe is to...
  9. Replies
    44
    Views
    4,610

    Re: how can i make a jbutton to close a jframe??

    Please post the necessary files on the forum rather than through a link or attachment.

    What have you tried since post #11. Up to that point you were doing a good job solving your problem. Post...
  10. Replies
    44
    Views
    4,610

    Re: how can i make a jbutton to close a jframe??

    Work on one problem at a time. Or did you finish working on closing the jframe how you wanted to?
    ...How did you open the first JFrame? ... Do it again.

    Or there is the option to hide (rather...
  11. Replies
    44
    Views
    4,610

    Re: how can i make a jbutton to close a jframe??

    ....and leave the program running?
    ....and close the program?
    ....reopen the jframe later or not?

    What have you tried since post #11?
  12. Replies
    44
    Views
    4,610

    Re: how can i make a jbutton to close a jframe??

    Use code tags when posting code. Instructions can be found on the announcements page. For future readers please edit your post and wrap the code in tags.


    @Override
    public void...
  13. Replies
    44
    Views
    4,610

    Re: how can i make a jbutton to close a jframe??

    Step 1 complete. Step 2 has been started but not finished. You have added "this" as an action listener to the button correctly, but I do not see the code that closes the JFrame you wish to close....
  14. Replies
    44
    Views
    4,610

    Re: how can i make a jbutton to close a jframe??

    copeg give you a perfect set of steps to follow in post #4.
    Post any questions you have about which step you are stuck on.
    Include the full text of any error messages with your code so we can see...
Results 1 to 14 of 14