• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java DemoProperties类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.sun.swingset3.DemoProperties的典型用法代码示例。如果您正苦于以下问题:Java DemoProperties类的具体用法?Java DemoProperties怎么用?Java DemoProperties使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



DemoProperties类属于com.sun.swingset3包,在下文中一共展示了DemoProperties类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: main

import com.sun.swingset3.DemoProperties; //导入依赖的package包/类
/**
 * main method allows us to run as a standalone demo.
 */
public static void main(String[] args) {
    SwingUtilities.invokeLater(new Runnable() {
        @Override
        public void run() {
            JFrame frame = new JFrame(XListDemo.class.getAnnotation(DemoProperties.class).value());
            
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.getContentPane().add(new XListDemo());
            frame.setPreferredSize(new Dimension(800, 600));
            frame.pack();
            frame.setLocationRelativeTo(null);
            frame.setVisible(true);
        }
    });
}
 
开发者ID:RockManJoe64,项目名称:swingx,代码行数:19,代码来源:XListDemo.java


示例2: main

import com.sun.swingset3.DemoProperties; //导入依赖的package包/类
/**
 * main method allows us to run as a standalone demo.
 */
public static void main(String[] args) {
    SwingUtilities.invokeLater(new Runnable() {
        @Override
        public void run() {
            JFrame frame = new JFrame(TreeTableDemo.class.getAnnotation(DemoProperties.class).value());
            
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.getContentPane().add(new TreeTableDemo());
            frame.setPreferredSize(new Dimension(800, 600));
            frame.pack();
            frame.setLocationRelativeTo(null);
            frame.setVisible(true);
        }
    });
}
 
开发者ID:RockManJoe64,项目名称:swingx,代码行数:19,代码来源:TreeTableDemo.java


示例3: main

import com.sun.swingset3.DemoProperties; //导入依赖的package包/类
/**
 * main method allows us to run as a standalone demo.
 */
public static void main(String[] args) {
    SwingUtilities.invokeLater(new Runnable() {
        @Override
        public void run() {
            JFrame frame = new JFrame(PromptSupportDemo.class.getAnnotation(DemoProperties.class).value());
            
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.getContentPane().add(new PromptSupportDemo());
            frame.setPreferredSize(new Dimension(800, 600));
            frame.pack();
            frame.setLocationRelativeTo(null);
            frame.setVisible(true);
        }
    });
}
 
开发者ID:RockManJoe64,项目名称:swingx,代码行数:19,代码来源:PromptSupportDemo.java


示例4: main

import com.sun.swingset3.DemoProperties; //导入依赖的package包/类
/**
 * main method allows us to run as a standalone demo.
 */
public static void main(String[] args) {
    SwingUtilities.invokeLater(new Runnable() {
        public void run() {
            JFrame frame = new JFrame(TitledPanelDemo.class.getAnnotation(
                    DemoProperties.class).value());

            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.getContentPane().add(new TitledPanelDemo());
            frame.setPreferredSize(new Dimension(800, 600));
            frame.pack();
            frame.setLocationRelativeTo(null);
            frame.setVisible(true);
        }
    });
}
 
开发者ID:RockManJoe64,项目名称:swingx,代码行数:19,代码来源:TitledPanelDemo.java


示例5: main

import com.sun.swingset3.DemoProperties; //导入依赖的package包/类
/**
 * main method allows us to run as a standalone demo.
 */
public static void main(String[] args) {
    SwingUtilities.invokeLater(new Runnable() {
        public void run() {
            StyledTextActions.install(Application.getInstance().getContext());
            
            JFrame frame = new JFrame(XEditorPaneDemo.class.getAnnotation(DemoProperties.class).value());
            
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.getContentPane().add(new XEditorPaneDemo());
            frame.setPreferredSize(new Dimension(800, 600));
            frame.pack();
            frame.setLocationRelativeTo(null);
            frame.setVisible(true);
        }
    });
}
 
开发者ID:RockManJoe64,项目名称:swingx,代码行数:20,代码来源:XEditorPaneDemo.java


示例6: main

import com.sun.swingset3.DemoProperties; //导入依赖的package包/类
/**
 * main method allows us to run as a standalone demo.
 */
public static void main(String[] args) {
    SwingUtilities.invokeLater(new Runnable() {
        public void run() {
            JFrame frame = new JFrame(GraphDemo.class.getAnnotation(DemoProperties.class)
                    .value());

            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.getContentPane().add(new GraphDemo());
            frame.setPreferredSize(new Dimension(800, 600));
            frame.pack();
            frame.setLocationRelativeTo(null);
            frame.setVisible(true);
        }
    });
}
 
开发者ID:RockManJoe64,项目名称:swingx,代码行数:19,代码来源:GraphDemo.java


示例7: test

import com.sun.swingset3.DemoProperties; //导入依赖的package包/类
@Test
public void test() throws Exception {
    new ClassReference(ToggleButtonDemo.class.getCanonicalName()).startApplication();

    JFrameOperator mainFrame = new JFrameOperator(ToggleButtonDemo.class.getAnnotation(DemoProperties.class).value());
    JTabbedPaneOperator tabPane = new JTabbedPaneOperator(mainFrame);

    // Radio Button Toggles
    testRadioButtons(getBorderTitledJPanelOperator(mainFrame, TEXT_RADIO_BUTTONS), 3, null);
    testRadioButtons(getBorderTitledJPanelOperator(mainFrame, IMAGE_RADIO_BUTTONS), 3, null);
    testRadioButtons(getLabeledContainerOperator(mainFrame, PAD_AMOUNT), 3, (t, i) -> DEFAULT.equals(t));

    // switch to the Check Boxes Tab
    tabPane.selectPage(CHECK_BOXES);

    // Check Box Toggles
    ContainerOperator<?> textCheckBoxesJPanel = getBorderTitledJPanelOperator(mainFrame, TEXT_CHECKBOXES);
    testCheckBox(textCheckBoxesJPanel, CHECK1, false);
    testCheckBox(textCheckBoxesJPanel, CHECK2, false);
    testCheckBox(textCheckBoxesJPanel, CHECK3, false);

    ContainerOperator<?> imageCheckBoxesJPanel = getBorderTitledJPanelOperator(mainFrame, IMAGE_CHECKBOXES);
    testCheckBox(imageCheckBoxesJPanel, CHECK1, false);
    testCheckBox(imageCheckBoxesJPanel, CHECK2, false);
    testCheckBox(imageCheckBoxesJPanel, CHECK3, false);

    ContainerOperator<?> displayOptionsContainer = getLabeledContainerOperator(mainFrame, DISPLAY_OPTIONS);
    testCheckBox(displayOptionsContainer, PAINT_BORDER, false);
    testCheckBox(displayOptionsContainer, PAINT_FOCUS, true);
    testCheckBox(displayOptionsContainer, ENABLED, true);
    testCheckBox(displayOptionsContainer, CONTENT_FILLED, true);

    // Direction Button Toggles
    testToggleButtons(mainFrame);
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:36,代码来源:ToggleButtonDemoTest.java


示例8: main

import com.sun.swingset3.DemoProperties; //导入依赖的package包/类
/**
 * 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);
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:13,代码来源:SliderDemo.java


示例9: main

import com.sun.swingset3.DemoProperties; //导入依赖的package包/类
/**
 * main method allows us to run as a standalone demo.
 *
 * @param args
 */
public static void main(String[] args) {
    JFrame frame = new JFrame(ToggleButtonDemo.class.getAnnotation(DemoProperties.class).value());

    frame.getContentPane().add(new ToggleButtonDemo());
    frame.setPreferredSize(new Dimension(800, 600));
    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:15,代码来源:ToggleButtonDemo.java


示例10: main

import com.sun.swingset3.DemoProperties; //导入依赖的package包/类
/**
 * 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);
}
 
开发者ID:freeseawind,项目名称:littleluck,代码行数:14,代码来源:ScrollPaneDemo.java


示例11: main

import com.sun.swingset3.DemoProperties; //导入依赖的package包/类
/**
 * 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);
}
 
开发者ID:freeseawind,项目名称:littleluck,代码行数:14,代码来源:GridBagLayoutDemo.java


示例12: main

import com.sun.swingset3.DemoProperties; //导入依赖的package包/类
/**
 * 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);
}
 
开发者ID:freeseawind,项目名称:littleluck,代码行数:14,代码来源:ToolTipDemo.java


示例13: main

import com.sun.swingset3.DemoProperties; //导入依赖的package包/类
/**
 * 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);
}
 
开发者ID:freeseawind,项目名称:littleluck,代码行数:14,代码来源:FileChooserDemo.java


示例14: main

import com.sun.swingset3.DemoProperties; //导入依赖的package包/类
/**
 * 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);
}
 
开发者ID:freeseawind,项目名称:littleluck,代码行数:14,代码来源:ProgressBarDemo.java


示例15: main

import com.sun.swingset3.DemoProperties; //导入依赖的package包/类
/**
 * 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);
}
 
开发者ID:freeseawind,项目名称:littleluck,代码行数:14,代码来源:SliderDemo.java


示例16: main

import com.sun.swingset3.DemoProperties; //导入依赖的package包/类
/**
 * 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);
}
 
开发者ID:freeseawind,项目名称:littleluck,代码行数:14,代码来源:TreeDemo.java


示例17: main

import com.sun.swingset3.DemoProperties; //导入依赖的package包/类
/**
 * 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);
}
 
开发者ID:freeseawind,项目名称:littleluck,代码行数:14,代码来源:ColorChooserDemo.java


示例18: main

import com.sun.swingset3.DemoProperties; //导入依赖的package包/类
/**
 * 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);
}
 
开发者ID:freeseawind,项目名称:littleluck,代码行数:14,代码来源:ToggleButtonDemo.java


示例19: main

import com.sun.swingset3.DemoProperties; //导入依赖的package包/类
/**
 * 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);
}
 
开发者ID:freeseawind,项目名称:littleluck,代码行数:14,代码来源:TabbedPaneDemo.java


示例20: main

import com.sun.swingset3.DemoProperties; //导入依赖的package包/类
/**
 * 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);
}
 
开发者ID:freeseawind,项目名称:littleluck,代码行数:14,代码来源:ListDemo.java



注:本文中的com.sun.swingset3.DemoProperties类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java ForgeCommand类代码示例发布时间:1970-01-01
下一篇:
Java DateUtils类代码示例发布时间:1970-01-01
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap