A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
Swing / AWT / SWT
how to restrict the focus between parent and child JFrame??
Joined: Feb 24, 2011
Jun 15, 2011 03:09:04
I have a parent
it contain a
. functionality of that button is to open another
I want to restrict the focus of
, means after closing the second
focus should come into first
And focus should not come to first JFrameif second
it is something like when you click on eclipse for create new project that time a window appear but without closing that small window
you can not perform action in the eclipse main window.
Stephan van Hulst
Joined: Sep 20, 2010
Jun 15, 2011 03:29:40
It sounds like you want to use a modal window. Take a look at the
class, it can create and display dialog windows for you.
It is sorta covered in the
JavaRanch Style Guide
subject: how to restrict the focus between parent and child JFrame??
Focus to Popup window
Making a child window modal
How to close JOptionPane Dialog box & come parent frame??
HFSJ Final Mock Question 47
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014