summaryrefslogtreecommitdiff
path: root/altosui/AltosUI.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-11-11 22:24:22 -0800
committerKeith Packard <keithp@keithp.com>2011-11-11 22:24:22 -0800
commit7ecde50fbebe68a2e2200a2f8d081fd37074f840 (patch)
tree63f2baf059ea416815c4bc3e6e48852c42eda8e6 /altosui/AltosUI.java
parent713bd503902526c17a7657c18be947ef8fa6a47a (diff)
altosui: Make UI Look&Feel configurable
Saves the preferred style and uses that for all current and new windows. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosUI.java')
-rw-r--r--altosui/AltosUI.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/altosui/AltosUI.java b/altosui/AltosUI.java
index 3e5bcf43..8799d560 100644
--- a/altosui/AltosUI.java
+++ b/altosui/AltosUI.java
@@ -30,7 +30,7 @@ import java.util.concurrent.*;
import libaltosJNI.*;
-public class AltosUI extends JFrame {
+public class AltosUI extends AltosFrame {
public AltosVoice voice = new AltosVoice();
public static boolean load_library(Frame frame) {
@@ -519,7 +519,7 @@ public class AltosUI extends JFrame {
public static void main(final String[] args) {
try {
- UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
+ UIManager.setLookAndFeel(AltosPreferences.look_and_feel());
} catch (Exception e) {
}
/* Handle batch-mode */