• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Undecorated Translucent and Shaped Window in Java7

 
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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


 
Can't .... do .... plaid .... So I did this tiny ad instead:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic