waffe
asked on
java.awt.AWTPermission setWindowAlwaysOnTop
I have a java program with a JFrame and when I set it to - JFrame.setAlwaysOnTop(true ); I get this error when on the web:
Exception in thread "AWT-EventQueue-2" java.security.AccessContro lException : access denied (java.awt.AWTPermission setWindowAlwaysOnTop)
at java.security.AccessContro lContext.c heckPermis sion(Unkno wn Source)
at java.security.AccessContro ller.check Permission (Unknown Source)
at java.lang.SecurityManager. checkPermi ssion(Unkn own Source)
at java.awt.Window.setAlwaysO nTop(Unkno wn Source)
at UI$mAction.actionPerformed (UI.java:3 27)
at javax.swing.AbstractButton .fireActio nPerformed (Unknown Source)
at javax.swing.AbstractButton $Handler.a ctionPerfo rmed(Unkno wn Source)
at javax.swing.DefaultButtonM odel.fireA ctionPerfo rmed(Unkno wn Source)
at javax.swing.DefaultButtonM odel.setPr essed(Unkn own Source)
at javax.swing.AbstractButton .doClick(U nknown Source)
at javax.swing.plaf.basic.Bas icMenuItem UI.doClick (Unknown Source)
at javax.swing.plaf.basic.Bas icMenuItem UI$Handler .mouseRele ased(Unkno wn Source)
at java.awt.Component.process MouseEvent (Unknown Source)
at javax.swing.JComponent.pro cessMouseE vent(Unkno wn Source)
at java.awt.Component.process Event(Unkn own Source)
at java.awt.Container.process Event(Unkn own Source)
at java.awt.Component.dispatc hEventImpl (Unknown Source)
at java.awt.Container.dispatc hEventImpl (Unknown Source)
at java.awt.Component.dispatc hEvent(Unk nown Source)
at java.awt.LightweightDispat cher.retar getMouseEv ent(Unknow n Source)
at java.awt.LightweightDispat cher.proce ssMouseEve nt(Unknown Source)
at java.awt.LightweightDispat cher.dispa tchEvent(U nknown Source)
at java.awt.Container.dispatc hEventImpl (Unknown Source)
at java.awt.Component.dispatc hEvent(Unk nown Source)
at java.awt.EventQueue.dispat chEvent(Un known Source)
at java.awt.EventDispatchThre ad.pumpOne EventForHi erarchy(Un known Source)
at java.awt.EventDispatchThre ad.pumpEve ntsForHier archy(Unkn own Source)
at java.awt.EventDispatchThre ad.pumpEve nts(Unknow n Source)
at java.awt.EventDispatchThre ad.pumpEve nts(Unknow n Source)
at java.awt.EventDispatchThre ad.run(Unk nown Source)
Is there a way to use this command when on the web?
Thanks,
waffe
Exception in thread "AWT-EventQueue-2" java.security.AccessContro
at java.security.AccessContro
at java.security.AccessContro
at java.lang.SecurityManager.
at java.awt.Window.setAlwaysO
at UI$mAction.actionPerformed
at javax.swing.AbstractButton
at javax.swing.AbstractButton
at javax.swing.DefaultButtonM
at javax.swing.DefaultButtonM
at javax.swing.AbstractButton
at javax.swing.plaf.basic.Bas
at javax.swing.plaf.basic.Bas
at java.awt.Component.process
at javax.swing.JComponent.pro
at java.awt.Component.process
at java.awt.Container.process
at java.awt.Component.dispatc
at java.awt.Container.dispatc
at java.awt.Component.dispatc
at java.awt.LightweightDispat
at java.awt.LightweightDispat
at java.awt.LightweightDispat
at java.awt.Container.dispatc
at java.awt.Component.dispatc
at java.awt.EventQueue.dispat
at java.awt.EventDispatchThre
at java.awt.EventDispatchThre
at java.awt.EventDispatchThre
at java.awt.EventDispatchThre
at java.awt.EventDispatchThre
Is there a way to use this command when on the web?
Thanks,
waffe
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
no JDialog would just stay on top of its parent.
Reasoning for the security restriction is so uninvited applet don't force windows to display on top of your other windows.
Reasoning for the security restriction is so uninvited applet don't force windows to display on top of your other windows.
ASKER
> no JDialog would just stay on top of its parent.
how about JWindow?
how about JWindow?
same sorry
ASKER
waffe