Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / May 2004

Tip: Looking for answers? Try searching our database.

JInternalFrames Focus Question

Thread view: 
E - 25 May 2004 15:57 GMT
Hi
I have a program which uses a number of JInternalFrames.  For example,
let's say that there are two of them side by side, called "left" and
"right."  If "left" has the focus, and there is a button in the middle
of "right" that you want to click, you can't just click the button
even if "right" is completely visible; rather, you need to first click
to give "right" focus, and then click again a second time on the
button.  I don't want this to happen.  I want it to be that as long as
it's clear what button (or any other component for that matter) is
being clicked -- i.e. the "right" JInternalFrame is not overlapped by
another JInternalFrame -- like the button in my example, it should
automatically get focus and click the button.  I think that this is
the way normal Windows programs work.  If I have a web browser open in
the middle of my screen and a word processor window open next to it,
even if the web browser has focus, I can click a button in the other
window without manually giving it focus first.  Is there any way to do
this in my Java GUI?
Thank you.
-Eli
Gerard H. Pille - 25 May 2004 23:23 GMT
> Hi
> I have a program which uses a number of JInternalFrames.  For example,
[quoted text clipped - 15 lines]
> Thank you.
> -Eli

What you ask for is the normal behaviour of JInternalFrames in a JDesktopPane.
There must be something in your application that doesn't want to release focus.
I just gave it a try (using 1.4.2), no problem.

Geert


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.