Mac OS Look&Feel unter Windows nutzen

  • Themenstarter Themenstarter Guest
  • Beginndatum Beginndatum
Status
Nicht offen für weitere Antworten.
G

Guest

Gast
Hallo,

ich kann ja, soweit ich weiß, unter Windows das Look&Feel von Windows benutzen, gibt es eine Möglichkeit, das Look&Feel unter Windows zu benutzen. Ich möchte nämlich meine, dass meine Fenster unter so aussehen, wie die unter Mac OS, geht das irgendwie ???:L
 
das das ich oben meinte tuts auch nicht

http://examples.oreilly.com/jswing2/code/goodies/misc.html

A Metal theme that includes components sized to match their counterparts in the Mac look-and-feel. While this theme does not create applications that look like Mac applications, it gives developers a clean and easy method for verifying their graphical layouts will display properly on Mac systems that use the native LnF rather than Metal.

Special thanks to Lee Ann Rucker for developing this theme and for granting us permission to post it here.



http://examples.oreilly.com/jswing2/code/goodies/MacMetrics.jar
 
To use it, simply be sure MacMetrics.jar is in your application's classpath, and arrange for the following lines of code to be executed:

import javax.swing.plaf.metal.MetalLookAndFeel;
. . .
MetalLookAndFeel.setCurrentTheme(new MacMetricsTheme( ));


If you change the theme after any Swing components have already been created, you also need to call SwingUtilities.updateComponentTreeUI for each top-level container in your application
 
Alter!!

Diese scheiss packagelosen dinger...

Das geht überhaupt net importieren und starten lässt ers auch net...

son scheiss hoch³
 
So gehts:

Code:
//Methode:
MetalLookAndFeel.setCurrentTheme((MetalTheme)findMacMetal());
//....
  private static Object findMacMetal()
      {
          Class	macMetal = null;
          Object o = null;
          try {
              macMetal = Class.forName( "MacMetricsTheme" );
              o = macMetal.newInstance();
          } 
          catch( Exception e ) {
     
              System.out.println( "*** load failed ***" );
          }
  
          return o;
    }


Da ist aber das andere LnF viel schöner und wenn man net wie beschrieben die 3.4 nimmt, sondern die 3.5 gehts in Linux auch super!!
 
das quaqua sieht unter windows aber mal wirglich arg scheiße aus :bloed:
 
schau/änder doch mal auf die url :autsch:
fürs SkinLnF gibs auch nen aqua skin...
sind aber alle mies.
 
Status
Nicht offen für weitere Antworten.

Zurück
Oben