Q
Qu0ll
I have a relatively simple JApplet that has a tool bar in the NORTH region
and a JPanel in the CENTER region of the applet's BorderLayout. The
JButtons on the tool bar have tool tip text associated with them.
The problem is that the tool tip text is only displayed when the applet has
focus (or so it seems) so when another application window is activated in
front of the browser window and then the browser window re-activated
(regains focus), the tool tips are not displayed (presumably because the
applet doesn't automatically have focus) until a control within the applet
is clicked on. The impression the user gets is that there are no tool tips
available at this time.
I have added listeners on the focus gained and component shown events of the
applet itself and neither is invoked when the browser window regains focus
so how can I respond to the fact that the browser window regained focus?
And why does the applet not appear to have focus when the browser regains
focus?
In other words, how can I assure that the tool tips will be always displayed
even when the browser window loses focus and then regains it?
I am using Java 6 Update 12 on Windows Vista and I have tried both IE 7 and
Firefox 3.0.6 browsers.
--
And loving it,
-Qu0ll (Rare, not extinct)
_________________________________________________
(e-mail address removed)
[Replace the "SixFour" with numbers to email me]
and a JPanel in the CENTER region of the applet's BorderLayout. The
JButtons on the tool bar have tool tip text associated with them.
The problem is that the tool tip text is only displayed when the applet has
focus (or so it seems) so when another application window is activated in
front of the browser window and then the browser window re-activated
(regains focus), the tool tips are not displayed (presumably because the
applet doesn't automatically have focus) until a control within the applet
is clicked on. The impression the user gets is that there are no tool tips
available at this time.
I have added listeners on the focus gained and component shown events of the
applet itself and neither is invoked when the browser window regains focus
so how can I respond to the fact that the browser window regained focus?
And why does the applet not appear to have focus when the browser regains
focus?
In other words, how can I assure that the tool tips will be always displayed
even when the browser window loses focus and then regains it?
I am using Java 6 Update 12 on Windows Vista and I have tried both IE 7 and
Firefox 3.0.6 browsers.
--
And loving it,
-Qu0ll (Rare, not extinct)
_________________________________________________
(e-mail address removed)
[Replace the "SixFour" with numbers to email me]