private void go() {
frame = new JFrame();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Container contentPane = frame.getContentPane();
ButtonModel model = new DefaultButtonModel();
JCheckBox check = new JCheckBox("a bit broken");
check.setModel(model);
panel = new JPanel(new BorderLayout());
panel.add(new JTextField("Press Tab (twice?)"), BorderLayout.NORTH);
panel.add(check);
contentPane.add(panel);
frame.setLocationRelativeTo(null);
frame.pack();
frame.setVisible(true);
}
DefaultButtonModelCrashTest.java 文件源码
java
阅读 25
收藏 0
点赞 0
评论 0
项目:openjdk-jdk10
作者:
评论列表
文章目录