wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes Undecorated Translucent and Shaped Window in Java7 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Undecorated Translucent and Shaped Window in Java7" Watch "Undecorated Translucent and Shaped Window in Java7" New topic
Author

Undecorated Translucent and Shaped Window in Java7

m Korbel
Ranch Hand

Joined: Jun 19, 2012
Posts: 150
- Please how is possible (probably dirty hack) to create How to Create Translucent and Shaped Windows

- undecorated container (returns java.awt.IllegalComponentStateException: The frame is displayable.)

- change Look and Feel for (returns AWT-EventQueue-0" java.awt.IllegalComponentStateException: The frame is decorated)

- by using code from linked official tutorial

.



- everything works for code compiled in JDK6xx, Top-level Container can be undecorated, LookAndFeel changed to Nimbus,

- not for Java7 (doesn't matter if desicion platform, binnary souce is setted back to JDK6 or not)

- original discusion on SO, Can't transparent and undecorated JFrame in JDK7 when enabling nimbus

- Asked/CrossPosted

1. OTN

2. Daniweb
m Korbel
Ranch Hand

Joined: Jun 19, 2012
Posts: 150
- accepted answer by @JamesCherrill on Daniweb,

- 1st. Top-Level Container created on InitialThread must be decorated and isDisplayable(), then after is possible whatever with rest of

- problably required short delaying by Swing Timer

.

m Korbel
Ranch Hand

Joined: Jun 19, 2012
Posts: 150
- half the solution in Java 7, is possible to create undecorated container, everything depends of proper ordering of methods

- still not solution, possible to create decorated container and with changed Look And Feel


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Undecorated Translucent and Shaped Window in Java7
 
Similar Threads
First time using an applet in a website
Jtable and JdatePickerCellEditor
Jframe default look and feel
Output image file and displaying it on screen