• Post Reply Bookmark Topic Watch Topic
  • New Topic

Show a Form in Modal state  RSS feed

 
Domenico Formenton
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

how I can show a form (JFrame) in a modal state (i.e disabling its parent)?

Thanks in advance

D. Formenton
 
Layne Lund
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should probably use a JDialog instead of a JFrame. The JDialog class has several constructors that allow you to specify that it is modal.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to the Swing / AWT / SWT / JFace forum...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!