Skip to content

Instantly share code, notes, and snippets.

@cat-in-136
Created January 28, 2012 08:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cat-in-136/1693524 to your computer and use it in GitHub Desktop.
Save cat-in-136/1693524 to your computer and use it in GitHub Desktop.
import com.sun.java.swing.plaf.windows.WindowsLookAndFeel;
public class RedmondLookAndFeel extends WindowsLookAndFeel {
public String getDescription() {
return "This is " + getName();
}
public String getID() {
return "RedmondLookAndFeel";
}
public String getName() {
return "Redmond Look & Feel";
}
public boolean isNativeLookAndFeel() {
return false;
}
public boolean isSupportedLookAndFeel() {
return true;
}
}
import javax.swing.plaf.basic.BasicLookAndFeel;
public class VerySimpleLookAndFeel extends BasicLookAndFeel {
public String getDescription() {
return "This is " + getName();
}
public String getID() {
return "VerySimpleLookAndFeel";
}
public String getName() {
return "Very Simple Look & Feel";
}
public boolean isNativeLookAndFeel() {
return false;
}
public boolean isSupportedLookAndFeel() {
return true;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment