my dog learned polymorphism*
The moose likes Swing / AWT / SWT and the fly likes swing.noxp equivalent for non-XP windows? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "swing.noxp equivalent for non-XP windows?" Watch "swing.noxp equivalent for non-XP windows?" New topic
Author

swing.noxp equivalent for non-XP windows?

Sugantha Jeevankumar
Ranch Hand

Joined: Jun 06, 2007
Posts: 92
Hello all... Currently my swing application runs in Windows XP with the "swing.noxp=true" option. So, the default XP LAF is overridden by the Classic Windows LAF and all works well..

I need to port my application to Windows 7 and this is where the problem begins. Is there an option like.. "swing.nowin7" such that I can get the classic windows LAF in Windows 7 environment. When I attempt to use the "swing.noxp=true" property in Windows 7, I "almost" get the classic look except for badly looking JInternalFrame icons and a standard issue of components at the corners of the screen appearing shrunk in all the screens of the application.

My JRE version is 1.5.0_22. Any suggestions and pointers are most welcome.


SCJP 5.0
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19556
    
  16

My first suggestion is to upgrade to Java 6, if possible.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Sugantha Jeevankumar
Ranch Hand

Joined: Jun 06, 2007
Posts: 92
Migrating to Java 6 is not in the cards since this is a legacy application and customer expects support in JRE 5.

Anybody who has faced a similar issue with look and feel or someone who has worked with java 5 in Windows 7, please suggest some pointers on what can be done. Currently, I am clueless.
satheesh bollam
Greenhorn

Joined: Jan 03, 2011
Posts: 2
Hi,

i am also facing exactly same problem on windows 7 with java 1.6.0_16 So, even java 1.6 mogration coun't solve this problem.

i have tried applying different look and feels through code. Only classic laf solved color problems but with this i got Jinternal frame close button shrinking problem as mentioned by Jeevankumar.

@Jeevankumar: Where to set the property "swing.noxp=true". in command line ? how ?

can any one help on this ???

Thanks in Advance !!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: swing.noxp equivalent for non-XP windows?
 
Similar Threads
How did they do that GUI ?
JInternalFrame close button shrunk on windows 7 with classic look and feel ???
Excel document created using HSSF POI API not opening in Windows7 but opening in Win XP
java gui on linux?
FileDialog and JFileChooser