This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Making the UI disappear after clicking a JButton Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "Making the UI disappear after clicking a JButton" Watch "Making the UI disappear after clicking a JButton" New topic
Author

Making the UI disappear after clicking a JButton

sampath surineni
Greenhorn

Joined: Apr 02, 2012
Posts: 29

I am working on a alarm application. I want my ui to disappear when user clicks the JButton and run in the background. Can you tell me how to do this.

Thank you
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19216

Call setVisible(false) on the frame.


SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
sampath surineni
Greenhorn

Joined: Apr 02, 2012
Posts: 29

Rob Spoor wrote:Call setVisible(false) on the frame.

thank you
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19216

You're welcome.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Making the UI disappear after clicking a JButton
 
Similar Threads
Feel Like I Am Starting Over
Can I distinguish JButtons?
JScrollBar problem!!!
WA #1.....word association
Minimize to tray on close button click.