简单的JavaSwing

JFrame jFrame = new JFrame("POJO生成MarkDownDoc");
jFrame.setLocationRelativeTo(null);
jFrame.setVisible(true);
jFrame.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);

ButtonGroup buttonGroup = new ButtonGroup();
JRadioButton reqButton = new JRadioButton("入参", true);
JRadioButton respButton = new JRadioButton("出参", false);
buttonGroup.add(reqButton);
buttonGroup.add(respButton);
JButton jButton = new JButton("生成");
JPanel jPanel = new JPanel();
jPanel.add(reqButton);
jPanel.add(respButton);
jPanel.add(jButton);
jFrame.add(jPanel, BorderLayout.CENTER);

上一篇:Java-泛型擦除


下一篇:递归—详解