• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating modal in JInternalFrame

 
Lilyana Saputra
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have some JInternalFrame class
And i have 1 JFrame to show all JInternalFrame that i have using JDesktopPane.

My problem is...i want to show JInternalFrame (A) from other JInternalFrame (B)...And what i want is user can not use other JInternalFrame or other menus, except he close the JInternalFrame (A) ==> modal

But all JInternalFrame (B, etc) that called from JFrame (not modal) can be choose and actif if user select it!!!

How to solve this problem....
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The solution is to use the appropriate components. JInternalFrames are not designed to be Dialogs. Thats what a JDialog or JOptionPane is for. Use them when you need modal windows.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic