com.sun.swingset3.DemoProperties Java Examples

The following examples show how to use com.sun.swingset3.DemoProperties. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ProgressBarDemo.java    From Darcula with Apache License 2.0 5 votes vote down vote up
/**
 * main method allows us to run as a standalone demo.
 */
public static void main(String[] args) {
    JFrame frame = new JFrame(ProgressBarDemo.class.getAnnotation(DemoProperties.class).value());
    
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.getContentPane().add(new ProgressBarDemo());
    frame.setPreferredSize(new Dimension(800, 600));
    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
}
 
Example #2
Source File: ToggleButtonDemo.java    From beautyeye with Apache License 2.0 5 votes vote down vote up
/**
 * main method allows us to run as a standalone demo.
 */
public static void main(String[] args) {
    JFrame frame = new JFrame(ToggleButtonDemo.class.getAnnotation(DemoProperties.class).value());

    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.getContentPane().add(new ToggleButtonDemo());
    frame.setPreferredSize(new Dimension(800, 600));
    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
}
 
Example #3
Source File: TabbedPaneDemo.java    From beautyeye with Apache License 2.0 5 votes vote down vote up
/**
 * main method allows us to run as a standalone demo.
 */
public static void main(String[] args) {
    JFrame frame = new JFrame(TabbedPaneDemo.class.getAnnotation(DemoProperties.class).value());

    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.getContentPane().add(new TabbedPaneDemo());
    frame.setPreferredSize(new Dimension(800, 600));
    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
}
 
Example #4
Source File: ListDemo.java    From beautyeye with Apache License 2.0 5 votes vote down vote up
/**
 * main method allows us to run as a standalone demo.
 */
public static void main(String[] args) {
    JFrame frame = new JFrame(ListDemo.class.getAnnotation(DemoProperties.class).value());

    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.getContentPane().add(new ListDemo());
    frame.setPreferredSize(new Dimension(800, 600));
    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
}
 
Example #5
Source File: SpinnerDemo.java    From beautyeye with Apache License 2.0 5 votes vote down vote up
public static void main(String[] args) {
    JFrame frame = new JFrame(
            SpinnerDemo.class.getAnnotation(DemoProperties.class).value());
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.getContentPane().add(new SpinnerDemo());
    frame.setPreferredSize(new Dimension(800, 600));
    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
}
 
Example #6
Source File: InternalFrameDemo.java    From beautyeye with Apache License 2.0 5 votes vote down vote up
/**
 * main method allows us to run as a standalone demo.
 */
public static void main(String[] args) {
    JFrame frame = new JFrame(InternalFrameDemo.class.getAnnotation(DemoProperties.class).value());

    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.getContentPane().add(new InternalFrameDemo());
    frame.setPreferredSize(new Dimension(800, 600));
    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
}
 
Example #7
Source File: EditorPaneDemo.java    From beautyeye with Apache License 2.0 5 votes vote down vote up
/**
 * main method allows us to run as a standalone demo.
 */
public static void main(String[] args) {
    JFrame frame = new JFrame(EditorPaneDemo.class.getAnnotation(DemoProperties.class).value());

    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.getContentPane().add(new EditorPaneDemo());
    frame.setPreferredSize(new Dimension(800, 600));
    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
}
 
Example #8
Source File: TextFieldDemo.java    From beautyeye with Apache License 2.0 5 votes vote down vote up
/**
 * main method allows us to run as a standalone demo.
 */
public static void main(String[] args) {
    JFrame frame = new JFrame(TextFieldDemo.class.getAnnotation(DemoProperties.class).value());

    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.getContentPane().add(new TextFieldDemo());
    frame.setPreferredSize(new Dimension(800, 600));
    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
}
 
Example #9
Source File: SplitPaneDemo.java    From beautyeye with Apache License 2.0 5 votes vote down vote up
/**
 * main method allows us to run as a standalone demo.
 */
public static void main(String[] args) {
    JFrame frame = new JFrame(SplitPaneDemo.class.getAnnotation(DemoProperties.class).value());

    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.getContentPane().add(new SplitPaneDemo());
    frame.setPreferredSize(new Dimension(800, 600));
    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
}
 
Example #10
Source File: OptionPaneDemo.java    From beautyeye with Apache License 2.0 5 votes vote down vote up
/**
 * main method allows us to run as a standalone demo.
 */
public static void main(String[] args) {
    JFrame frame = new JFrame(OptionPaneDemo.class.getAnnotation(DemoProperties.class).value());

    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.getContentPane().add(new OptionPaneDemo());
    frame.setPreferredSize(new Dimension(800, 600));
    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
}
 
Example #11
Source File: ComboBoxDemo.java    From beautyeye with Apache License 2.0 5 votes vote down vote up
/**
 * main method allows us to run as a standalone demo.
 */
public static void main(String[] args) {
    JFrame frame = new JFrame(ComboBoxDemo.class.getAnnotation(DemoProperties.class).value());

    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.getContentPane().add(new ComboBoxDemo());
    frame.setPreferredSize(new Dimension(800, 600));
    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
}
 
Example #12
Source File: ScrollPaneDemo.java    From Darcula with Apache License 2.0 5 votes vote down vote up
/**
 * main method allows us to run as a standalone demo.
 */
public static void main(String[] args) {
    JFrame frame = new JFrame(ScrollPaneDemo.class.getAnnotation(DemoProperties.class).value());

    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.getContentPane().add(new ScrollPaneDemo());
    frame.setPreferredSize(new Dimension(800, 600));
    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
}
 
Example #13
Source File: GridBagLayoutDemo.java    From Darcula with Apache License 2.0 5 votes vote down vote up
/**
 * main method allows us to run as a standalone demo.
 */
public static void main(String[] args) {
    JFrame frame = new JFrame(GridBagLayoutDemo.class.getAnnotation(DemoProperties.class).value());

    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.getContentPane().add(new GridBagLayoutDemo());
    frame.setPreferredSize(new Dimension(800, 600));
    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
}
 
Example #14
Source File: ToolTipDemo.java    From Darcula with Apache License 2.0 5 votes vote down vote up
/**
 * main method allows us to run as a standalone demo.
 */
public static void main(String[] args) {
    JFrame frame = new JFrame(ToolTipDemo.class.getAnnotation(DemoProperties.class).value());

    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.getContentPane().add(new ToolTipDemo());
    frame.setPreferredSize(new Dimension(800, 600));
    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
}
 
Example #15
Source File: FileChooserDemo.java    From Darcula with Apache License 2.0 5 votes vote down vote up
/**
 * main method allows us to run as a standalone demo.
 */
public static void main(String[] args) {
    JFrame frame = new JFrame(FileChooserDemo.class.getAnnotation(DemoProperties.class).value());

    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.getContentPane().add(new FileChooserDemo());
    frame.setPreferredSize(new Dimension(800, 600));
    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
}
 
Example #16
Source File: ColorChooserDemo.java    From beautyeye with Apache License 2.0 5 votes vote down vote up
/**
 * main method allows us to run as a standalone demo.
 */
public static void main(String[] args) {
    JFrame frame = new JFrame(ColorChooserDemo.class.getAnnotation(DemoProperties.class).value());

    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.getContentPane().add(new ColorChooserDemo());
    frame.setPreferredSize(new Dimension(800, 600));
    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
}
 
Example #17
Source File: SliderDemo.java    From Darcula with Apache License 2.0 5 votes vote down vote up
/**
 * main method allows us to run as a standalone demo.
 */
public static void main(String[] args) {
    JFrame frame = new JFrame(SliderDemo.class.getAnnotation(DemoProperties.class).value());

    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.getContentPane().add(new SliderDemo());
    frame.setPreferredSize(new Dimension(800, 600));
    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
}
 
Example #18
Source File: TreeDemo.java    From Darcula with Apache License 2.0 5 votes vote down vote up
/**
 * main method allows us to run as a standalone demo.
 */
public static void main(String[] args) {
    JFrame frame = new JFrame(TreeDemo.class.getAnnotation(DemoProperties.class).value());

    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.getContentPane().add(new TreeDemo());
    frame.setPreferredSize(new Dimension(800, 600));
    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
}
 
Example #19
Source File: ColorChooserDemo.java    From Darcula with Apache License 2.0 5 votes vote down vote up
/**
 * main method allows us to run as a standalone demo.
 */
public static void main(String[] args) {
    JFrame frame = new JFrame(ColorChooserDemo.class.getAnnotation(DemoProperties.class).value());

    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.getContentPane().add(new ColorChooserDemo());
    frame.setPreferredSize(new Dimension(800, 600));
    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
}
 
Example #20
Source File: ToggleButtonDemo.java    From Darcula with Apache License 2.0 5 votes vote down vote up
/**
 * main method allows us to run as a standalone demo.
 */
public static void main(String[] args) {
    JFrame frame = new JFrame(ToggleButtonDemo.class.getAnnotation(DemoProperties.class).value());

    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.getContentPane().add(new ToggleButtonDemo());
    frame.setPreferredSize(new Dimension(800, 600));
    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
}
 
Example #21
Source File: TabbedPaneDemo.java    From Darcula with Apache License 2.0 5 votes vote down vote up
/**
 * main method allows us to run as a standalone demo.
 */
public static void main(String[] args) {
    JFrame frame = new JFrame(TabbedPaneDemo.class.getAnnotation(DemoProperties.class).value());

    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.getContentPane().add(new TabbedPaneDemo());
    frame.setPreferredSize(new Dimension(800, 600));
    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
}
 
Example #22
Source File: ListDemo.java    From Darcula with Apache License 2.0 5 votes vote down vote up
/**
 * main method allows us to run as a standalone demo.
 */
public static void main(String[] args) {
    JFrame frame = new JFrame(ListDemo.class.getAnnotation(DemoProperties.class).value());

    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.getContentPane().add(new ListDemo());
    frame.setPreferredSize(new Dimension(800, 600));
    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
}
 
Example #23
Source File: SpinnerDemo.java    From Darcula with Apache License 2.0 5 votes vote down vote up
public static void main(String[] args) {
    JFrame frame = new JFrame(
            SpinnerDemo.class.getAnnotation(DemoProperties.class).value());
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.getContentPane().add(new SpinnerDemo());
    frame.setPreferredSize(new Dimension(800, 600));
    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
}
 
Example #24
Source File: InternalFrameDemo.java    From Darcula with Apache License 2.0 5 votes vote down vote up
/**
 * main method allows us to run as a standalone demo.
 */
public static void main(String[] args) {
    JFrame frame = new JFrame(InternalFrameDemo.class.getAnnotation(DemoProperties.class).value());

    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.getContentPane().add(new InternalFrameDemo());
    frame.setPreferredSize(new Dimension(800, 600));
    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
}
 
Example #25
Source File: EditorPaneDemo.java    From Darcula with Apache License 2.0 5 votes vote down vote up
/**
 * main method allows us to run as a standalone demo.
 */
public static void main(String[] args) {
    JFrame frame = new JFrame(EditorPaneDemo.class.getAnnotation(DemoProperties.class).value());

    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.getContentPane().add(new EditorPaneDemo());
    frame.setPreferredSize(new Dimension(800, 600));
    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
}
 
Example #26
Source File: TextFieldDemo.java    From Darcula with Apache License 2.0 5 votes vote down vote up
/**
 * main method allows us to run as a standalone demo.
 */
public static void main(String[] args) {
    JFrame frame = new JFrame(TextFieldDemo.class.getAnnotation(DemoProperties.class).value());

    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.getContentPane().add(new TextFieldDemo());
    frame.setPreferredSize(new Dimension(800, 600));
    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
}
 
Example #27
Source File: SplitPaneDemo.java    From Darcula with Apache License 2.0 5 votes vote down vote up
/**
 * main method allows us to run as a standalone demo.
 */
public static void main(String[] args) {
    JFrame frame = new JFrame(SplitPaneDemo.class.getAnnotation(DemoProperties.class).value());

    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.getContentPane().add(new SplitPaneDemo());
    frame.setPreferredSize(new Dimension(800, 600));
    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
}
 
Example #28
Source File: OptionPaneDemo.java    From Darcula with Apache License 2.0 5 votes vote down vote up
/**
 * main method allows us to run as a standalone demo.
 */
public static void main(String[] args) {
    JFrame frame = new JFrame(OptionPaneDemo.class.getAnnotation(DemoProperties.class).value());

    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.getContentPane().add(new OptionPaneDemo());
    frame.setPreferredSize(new Dimension(800, 600));
    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
}
 
Example #29
Source File: ComboBoxDemo.java    From Darcula with Apache License 2.0 5 votes vote down vote up
/**
 * main method allows us to run as a standalone demo.
 */
public static void main(String[] args) {
    JFrame frame = new JFrame(ComboBoxDemo.class.getAnnotation(DemoProperties.class).value());

    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.getContentPane().add(new ComboBoxDemo());
    frame.setPreferredSize(new Dimension(800, 600));
    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
}
 
Example #30
Source File: SpinnerDemo.java    From littleluck with Apache License 2.0 5 votes vote down vote up
public static void main(String[] args) {
    JFrame frame = new JFrame(
            SpinnerDemo.class.getAnnotation(DemoProperties.class).value());
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.getContentPane().add(new SpinnerDemo());
    frame.setPreferredSize(new Dimension(800, 600));
    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
}