A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Swing / AWT / SWT
How to close jInternal Frame as soon as focus moves to any object in the parent JFrame.
Joined: Jun 20, 2013
Jun 20, 2013 11:51:56
I have a form (
). When I click a button in this frame a new sub form (jInternalFrame) opens.
I need help in understanding how to close the jInternalFrame as soon as it or any of the components from it looses focus.
Joined: Sep 13, 2007
Jun 20, 2013 12:35:27
Welcome to the Ranch.
Your answer lies in the
section of the Swing tutorial. Which event listener is the appropriate one depends on how you define "focus": keyboard, mouse, jinternalframe or something else.
Joined: Jun 19, 2010
Jun 20, 2013 14:33:41
The quieter you are, the more you are able to hear.
subject: How to close jInternal Frame as soon as focus moves to any object in the parent JFrame.
mnemonics are not getting focus for the menubar
How to set focus on one of the two JInternalFrame
Creating modal in JInternalFrame
Putting a JTabbedPane in a JInternalFrame
JInternalFrame to get Focus
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014