Display window after windowClosing() event.

M

milindsj

Hi,
I have the following code in windowClosing() of JFrame in Mac


public void windowClosing(WindowEvent event)
{
setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
}


Hence after I click on the close button, window won't be visible.
But the .app is available in the dock menu of Mac.
How can I make the window visible if I click on the .app icon in dock.
Please let me know.

Thanks in advance.
Milind
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,681
Members
48,796
Latest member
Greg L.

Latest Threads

Top