Link to home
Start Free TrialLog in
Avatar of sangameshrh
sangameshrh

asked on

Probelm with Undecorated in JFrame

When I tried to do
JFrame.frame.setUndecorated(true);
I am getting this exception
Exception in thread "main" java.awt.IllegalComponentStateException: The frame is
 displayable.
        at java.awt.Frame.setUndecorated(Unknown Source)
        at TransparentBackground.main(TransparentBackground.java:163)

Thanks
ASKER CERTIFIED SOLUTION
Avatar of sciuriware
sciuriware

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CEHJ
You need to set that before displaying the frame
Sorry Joop
Avatar of sciuriware
sciuriware

Why sorry, nobody harmed.
Pleased to be a help.

;JOOP!