Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

unable to use winlaf

 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have downloaded winlaf.jar to test another l&f.
I have put thid jar in my class path and inside the main method I have wrote:
public static void main(String[ ] arg) {
net.java.plaf.LookAndFeelPatchManager.initialize();
// some code to create my frame
but the GUI dosen't change, so what I must do ?
 
Jose Botella
Ranch Hand
Posts: 2120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I haven't test it, but according to How to set the Look and Feel section in the Java Tutorial, once an external LAF has been placed in the classpath, it can be treated as the others. Thus try
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic