Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Undecorated Translucent and Shaped Window in Java7

 
m Korbel
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
- 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
Posts: 174
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
- 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
Posts: 174
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
- 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


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic