8

Is it possible for a Swing based Java to have the Aero Glass effect as the background under Windows Vista/7?

Grogs
  • 445
  • 4
  • 9

3 Answers3

11

As of Java SE 6 Swing's native look and feel for windows uses Aero. There's a blog post with a lot of details about this from Chet Haase entitled Java on Vista : Yes it works

Arjan Tijms
  • 37,782
  • 12
  • 108
  • 140
Nate
  • 16,748
  • 5
  • 45
  • 59
  • The blog posts contain screenshots that show window titles in unreadable gray instead of the normal black, and show some graphics glitches: Note the right borders of the minimize/maximize/close buttons of the inner windows here: http://weblogs.java.net/blog/chet/96dpi_swingset2.png – Zarel Jul 10 '09 at 02:02
  • 1
    @Zarel: It may be because the article is dated oct 2006. By now ( Java 6 update 14 ) it works just fine. I remember I had an screenshot of it. – OscarRyz Jul 10 '09 at 02:28
  • There are some other screenshots in this JavaLobby post that show darker window titles - http://www.javalobby.org/java/forums/t78880.html?start=30 Perhaps in Chet's the app was sent to the background by the screenshot software, he had a horrible color scheme set, or it was an earlier beta version of Java 6SE. I'd validate it with some screenshots myself but currently on my Macbook. – Nate Jul 10 '09 at 02:31
2

I know it is possible, as it was achieved by the person who asked this question. I am currently researching the same thing and will post here if I find out how.

Community
  • 1
  • 1
Ky -
  • 30,724
  • 51
  • 192
  • 308
  • 1
    After further research, no. The built-in API for Swing applications doesn't have built-in aero compatibility. – Ky - Apr 07 '11 at 18:32
1

It does already.

alt text http://img167.imageshack.us/img167/5655/capturaxk5.png

From this unrelated answer

Community
  • 1
  • 1
OscarRyz
  • 196,001
  • 113
  • 385
  • 569