如图我要在里面插入图片!代码如下,请大侠们写一些注释!publicclassLoginFrameextendsJFrame{publicJTextFieldtextField_name=null;publicJPasswordFieldpasswordField=null;JRadio...
如图我要在里面插入图片!
代码如下,请大侠们写一些注释!
public class LoginFrame extends JFrame {
public JTextField textField_name = null;
public JPasswordField passwordField = null;
JRadioButton radioButton1 = null;
JRadioButton radioButton2 = null;
public JComboBox comboBox = null;
public String text = new String("null");
public ButtonGroup buttonGroup = null;
public LoginFrame() {
insert();
this.setTitle("图书馆登录");
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setSize(new Dimension(365, 350));
this.setLocationRelativeTo(null);// 显示器的居中
this.setVisible(true);