Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #3556

Using two JFrames with on

From "cokofreedom" <cokofreedom@THRWHITE.remove-dii-this>
Subject Using two JFrames with on
Message-ID <5f28337e-5f61-4e19-8705-e4ea20915135@27g2000hsf.googlegroups.com> (permalink)
Newsgroups comp.lang.java.gui
Date 2011-04-27 15:45 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
Hi,

I have a Main Frame and a Log Frame. I currently have it so that when
I move my Main Frame the Log Frame follows it, and when I minimize and
maximize my Main Frame the Log Frame does the same action.

But I cannot work out how to get the Log Frame to gain focus when I
have a separate window (say my IDE) open and then click on the Main
Frame. The Log Frame will not appear because I have no minimized or
maximized my Main Frame. (It will still follow it correctly so when I
personally click on its Window Icon it is below my Main Frame).

I was wondering whether I had just missed a simple ActionControl call
to enable my Log Frame to gain Focus at the same time as my Main
Frame.

windowGainedFocus and focusGained seemed to the obvious two events to
use from my Main Frame, but I cannot see how to make my Log Frame gain
focus as well.

Any help will be welcomed!

Coko

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | Next | Find similar | Unroll thread


Thread

Using two JFrames with on "cokofreedom" <cokofreedom@THRWHITE.remove-dii-this> - 2011-04-27 15:45 +0000

csiph-web