This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

For set focus on frame..  RSS feed

 
arun singhal
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have one frame in main window.
I have one button for "edit user" .
When I click on button "edit user" , then one new window open for edit user ...
Now i want that anyone can not click on main frame f..
means user can only click on new window of "edit user" and when user close new window then he can take command of main frame...
Please solve this problem..
 
Rok Štelcer
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

If I understood you correctly, you'll need a model dialog and nothing else.
So, instead of creating a new JFrame, you should create a new JDialog.


Regards,
Rok
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!