Standardaussehen von Java ändern



  • Kann mir einer sagen wie ich unter Linux das Standardaussehen von Java auf Nimbus ändern kann?



  • Mit dem UIManager.

    Btw: Ist das ein Java-Frage.


  • Mod

    Zeus schrieb:

    Mit dem UIManager.

    Btw: Ist das ein Java-Frage.

    Ich glaube er will den Standard-UIManager systemweit überschreiben.

    MfG SideWinder



  • Google wird langsam zu ne Kunst?

    http://java.sun.com/docs/books/tutorial/uiswing/lookandfeel/plaf.html schrieb:

    Specifying the Look and Feel: Command Line
    You can specify the L&F at the command line by using the -D flag to set the swing.defaultlaf property. For example:
    java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel MyApp

    java -Dswing.defaultlaf=com.sun.java.swing.plaf.windows.WindowsLookAndFeel MyApp

    Specifying the Look and Feel: swing.properties File
    Yet another way to specify the current L&F is to use the swing.properties file to set the swing.defaultlaf property. This file, which you may need to create, is located in the lib directory of Sun's Java release (other vendors of Java may use a different location). For example, if you're using the Java interpreter in javaHomeDirectory\bin, then the swing.properties file (if it exists) is in javaHomeDirectory\lib. Here is an example of the contents of a swing.properties file:
    # Swing properties
    swing.defaultlaf=com.sun.java.swing.plaf.windows.WindowsLookAndFeel


Anmelden zum Antworten