Applets AWT and setAlwaysOnTop(true)

R

Richard Maher

Hi,

Can anyone confirm or deny that setAlwaysOnTop(true) is supposed to "do what
it says on the tin" when it comes to applets?

(Arne, I see you had it commented out on your log4j example (which I'll try
this w/e))

My class extends an AWT Frame and displays a useful little console that I'd
like to be "on top" if at all possible when not iconified. I'm not getting a
security exception but it's just not happening.

Cheers Richard Maher
 
A

Arne Vajhøj

Richard said:
Can anyone confirm or deny that setAlwaysOnTop(true) is supposed to "do what
it says on the tin" when it comes to applets?

(Arne, I see you had it commented out on your log4j example (which I'll try
this w/e))

My class extends an AWT Frame and displays a useful little console that I'd
like to be "on top" if at all possible when not iconified. I'm not getting a
security exception but it's just not happening.

It was commented out in my applet, because the applet security
manager did not allow it.

It works with a JFrame, Java 1.6, Windows XP and the wind from SW
here !

Arne
 
R

Richard Maher

Hi Eric

Eric Sosman said:
The platform's window manager has the final say on positions,
sizes, and stacking. What does isAlwaysOnTopSupported() indicate?
(And see the Javadoc for that method; the answer may depend on the
flavor of Window or even on the particular Window instance.)

Yes, it is supported thanks. It must have been pilot error or a versioning
issue on my end. (athough AccessControlException rather than
SecurityException). Run outside the applet it "does what it says on the
tin".
Cheers Richard Maher
 
R

Richard Maher

Hi Arne,

Arne Vajhøj said:
It was commented out in my applet, because the applet security
manager did not allow it.

Now I too am getting AccessControlException when running in the Applet.
It works with a JFrame, Java 1.6, Windows XP and the wind from SW
here !

From the command-line and with a good sea-breeze (SW in Perth) it works here
too :)

Cheers Richard Maher
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,159
Messages
2,570,879
Members
47,414
Latest member
GayleWedel

Latest Threads

Top