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


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

Using two JFrames with on

Started by"cokofreedom" <cokofreedom@THRWHITE.remove-dii-this>
First post2011-04-27 15:45 +0000
Last post2011-04-27 15:45 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.java.gui


Contents

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

#3556 — Using two JFrames with on

From"cokofreedom" <cokofreedom@THRWHITE.remove-dii-this>
Date2011-04-27 15:45 +0000
SubjectUsing two JFrames with on
Message-ID<5f28337e-5f61-4e19-8705-e4ea20915135@27g2000hsf.googlegroups.com>
  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

[toc] | [standalone]


Back to top | Article view | comp.lang.java.gui


csiph-web