• Post Reply Bookmark Topic Watch Topic
  • New Topic

2 frames!!!

 
Maha Hassan
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have 2 frames in my application on for options and the other is the main frame ....i want to have the main frame visible when i use the options frame but at the same time i dont want it to be focusable as longas the options frame is opened ...i tried the mainframe.setFocusable(false)...but it didnt work ...
i want the main frame seen ..but now one can focus on it !!!
 
Mahesh x Bogadi
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Donot use 2 frames.

Instead
* Use one frame
* And one JDialog.
* Make the Dialog as setModal(true);
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!