A question about JFrame

Hello, i磎 newbie in Java :D

When i press a button in my application, a jframe appears, and if i press the button again the jframe appears again (obviously), but i want that jframe apears only once until "Accept" button has been pressed.

Sorry for my english lol I hope you understand my question

[314 byte] By [jfilechoosera] at [2007-11-27 1:27:23]
# 1
i think U already create two instances so make it to one in the press button action listener.
Dharmendra.jspa at 2007-7-12 0:23:41 > top of Java-index,Desktop,Core GUI APIs...
# 2
Thanks, second jframe shouldn't appear in the application while first jframe is still open, although i press a button.
jfilechoosera at 2007-7-12 0:23:41 > top of Java-index,Desktop,Core GUI APIs...
# 3
now its ok or not.
Dharmendra.jspa at 2007-7-12 0:23:41 > top of Java-index,Desktop,Core GUI APIs...
# 4
Disable the button after you press it. And then enable the button when the accept button is pressed.
camickra at 2007-7-12 0:23:41 > top of Java-index,Desktop,Core GUI APIs...
# 5
I'll try that option, thank you.
jfilechoosera at 2007-7-12 0:23:41 > top of Java-index,Desktop,Core GUI APIs...