• Post Reply Bookmark Topic Watch Topic
  • New Topic

Disable JFrame's components

 
Mamu Jan
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

If I call a class ( that extends JDialog ) from my main app ( that extends JFrame ), how can I disable or hide the JFrame while the JDialog is active. Just like a normal inputDialog box that never looses focus.

Thanx
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JDialog.setModal(true);
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!