Using two JFrames with one always mimicking the other
- From: cokofreedom@xxxxxxxxx
- Date: Tue, 27 May 2008 05:01:51 -0700 (PDT)
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
.
- Follow-Ups:
- Re: Using two JFrames with one always mimicking the other
- From: Andrew Thompson
- Re: Using two JFrames with one always mimicking the other
- Prev by Date: Re: Drop-Down-Menu in JToolbar
- Next by Date: Re: Using two JFrames with one always mimicking the other
- Previous by thread: Drop-Down-Menu in JToolbar
- Next by thread: Re: Using two JFrames with one always mimicking the other
- Index(es):