Re: Close a frame, not the application?



You should first of all use JDialog, that would fix the problem. But
however if you are hell bent on using JFrame just use the
f.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE) method.
.



Relevant Pages

  • Re: Passing objects between two JFrames
    ... Sounds like a job for JDialog to me. ... you created a getter function for called public String getUserInput(); ... here's the code to go in your JFrame. ...
    (comp.lang.java.gui)
  • Re: Question: jFranme and jDialog
    ... The jDialog has been made visible and is modal. ... Is there a way to access the value of the checkbox on the parent ... If I understand correctly - the object based on a jFrame is the parent ...
    (comp.lang.java.gui)
  • Re: Passing objects between two JFrames
    ... > Sounds like a job for JDialog to me. ... > you created an internal property called userInput of type String, ... here's the code to go in your JFrame. ... me the above exception. ...
    (comp.lang.java.gui)
  • Re: How to get reference for JFrame
    ... public static void main{ ... JFrame frame = new JFrame; ... I want to run JDialog from JMenuItem. ...
    (comp.lang.java.gui)
  • Re: JDialog topmost
    ... MEIN JFrame schon. ... JDialog. ... Prev by Date: ... Next by Date: ...
    (de.comp.lang.java)