1 package org.feistymeow.windowing;
18 UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
19 }
catch(Exception e) {
20 System.out.println(
"Error setting native LAF: " + e);
26 UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
27 }
catch(Exception e) {
28 System.out.println(
"Error setting Java LAF: " + e);
34 UIManager.setLookAndFeel(
"com.sun.java.swing.plaf.motif.MotifLookAndFeel");
35 }
catch(Exception e) {
36 System.out.println(
"Error setting Motif LAF: " + e);
49 JFrame frame =
new JFrame(title);
50 frame.setBackground(bgColor);
51 content.setBackground(bgColor);
52 frame.setSize(
width, height);
53 frame.setContentPane(content);
55 frame.setVisible(
true);
76 content.getClass().getName(),
static JFrame openInJFrame(Container content, int width, int height)
static void setMotifLookAndFeel()
static JFrame openInJFrame(Container content, int width, int height, String title, Color bgColor)
static void setJavaLookAndFeel()
static void setNativeLookAndFeel()
static JFrame openInJFrame(Container content, int width, int height, String title)