guys, I need help in swing framework...
what method is being used when you have to pressed exit button first before opening other frames? It's like an equivalent of showDialog() from C#.net.
guys, I need help in swing framework...
what method is being used when you have to pressed exit button first before opening other frames? It's like an equivalent of showDialog() from C#.net.
To close one frame and open another you just make the first one invisible (or dispose()) it, then make the second visible (or create new instance of it).
If however you just want to pop up a (modal) dialog you would use one of the methods in the JOptionPane class
what I want to do is, you cannot open other applications w/o closing the popup frame first..
You can't stop the user from switching to other applications if he wants, but if you want to prevent him switching to other windows in your Java app then all you need is a modal JDialog - usually created via JOptionPane
I see... Thanks for your response.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.