java程序设计基础篇初学者必看小结 JTextField jtfName = new JTextField("Type Name Here"); jtfName.setBackground(Color.red); // Create a check box with text bold JCheckBox jchkBold = new JCheckBox("Bold"); jchkBold.setSize(10,50); // Create a radio button with text
public static JFrame main=new JFrame("JAVA端口扫描器"); //显示扫描结果 public static JTextArea Result=new JTextArea("",4,40); //滚动条面板 public static JScrollPane resultPane = new JScrollPane(Result,JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL