• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to make this window to be modal?  RSS feed

 
kelvin cheung
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


when a user click a button,
a new window should be opened.
and the parent window is now unavaiable until the new window is closed.

?
 
Pat Hays
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
change:
adminFrame = new JDialog(this);
 
kelvin cheung
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friend,
thank you for the help.

the fix was:
adminFrame = new JDialog(this, "Admin Log-in", true);

for those who needs it too.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!