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