随笔分类 -  JAVA 学习

摘要:public class Ftest extends JFrame{ private static final long sertalVersionUID = 1L; private JPanel jContentPane = null; private JTextArea jTextArea = null; private JPanel controlPane ... 阅读全文
posted @ 2019-03-26 11:32 小小超plus 阅读(532) 评论(0) 推荐(0)
摘要:public class MapText { public static void main(String[] args) { // TODO Auto-generated method stub Mapmap = new HashMap(); Emp emp = new Emp("351", "张三"); ... 阅读全文
posted @ 2019-03-25 12:21 小小超plus 阅读(344) 评论(0) 推荐(0)
摘要:public class updateStu { public static void main(String[] args) { // TODO Auto-generated method stub Mapmap = new HashMap(); map.put("01","李同学"); map.put("02", "魏同... 阅读全文
posted @ 2019-03-25 12:06 小小超plus 阅读(104) 评论(0) 推荐(0)
摘要:public class UpdateStu implements Comparable{ String name; long id; public UpdateStu(String name,long id) { // TODO Auto-generated constructor stub this.id = id; ... 阅读全文
posted @ 2019-03-25 11:42 小小超plus 阅读(214) 评论(0) 推荐(0)
摘要:public class Gather { public static void main(String[] args) { // TODO Auto-generated method stub LinkedList stringList = new LinkedList(); stringList.add("a"); s... 阅读全文
posted @ 2019-03-25 11:15 小小超plus 阅读(314) 评论(0) 推荐(0)
摘要:final JTextField jt = new JTextField(); jt.getText().trim().toString(); 阅读全文
posted @ 2019-03-24 15:28 小小超plus 阅读(779) 评论(0) 推荐(0)
摘要:public class asd extends JFrame { public asd() { // TODO Auto-generated constructor stub Container c = getContentPane(); setLayout(new GridLayout(3, 1 阅读全文
posted @ 2019-03-24 15:27 小小超plus 阅读(168) 评论(0) 推荐(0)
摘要:原链接:https://blog.csdn.net/y786256773/article/details/80670084 阅读全文
posted @ 2019-03-24 14:40 小小超plus 阅读(130) 评论(0) 推荐(0)
摘要:public class asd extends JFrame{ public asd() { // TODO Auto-generated constructor stub Container c = getContentPane(); setDefaultCloseOperation(Windo 阅读全文
posted @ 2019-03-24 13:47 小小超plus 阅读(198) 评论(0) 推荐(0)
摘要:public class SimpleEvent extends JFrame{ private JButton jb = new JButton("我是按钮,单击我"); public SimpleEvent() { // TODO Auto-generated constructor stub setLayout(null); ... 阅读全文
posted @ 2019-03-24 13:15 小小超plus 阅读(358) 评论(0) 推荐(0)
摘要:public class JTextAreaTest extends JFrame{ public JTextAreaTest() { // TODO Auto-generated constructor stub setSize(200,100); setTitle("定义自动换行的文本域"); setDefaultCloseOperation(... 阅读全文
posted @ 2019-03-23 15:18 小小超plus 阅读(267) 评论(0) 推荐(0)
摘要:public class asd extends JFrame{ public asd() { // TODO Auto-generated constructor stub Container c = getContentPane(); setVisible(true); setSize(300,200); setDefaultClos... 阅读全文
posted @ 2019-03-23 14:55 小小超plus 阅读(190) 评论(0) 推荐(0)
摘要:public class JTextFieldTest extends JFrame { public JTextFieldTest() { // TODO Auto-generated constructor stub Container c = getContentPane(); setLayout(new FlowLayout())... 阅读全文
posted @ 2019-03-23 14:50 小小超plus 阅读(187) 评论(0) 推荐(0)
摘要:public class JComboBoxMode1Test extends JFrame{ private static final long serialVersionUID = 1L; JComboBox jc = new JComboBox(new MyComboBox()); JLabel jl = new JLabel("请选择证件:"); publ... 阅读全文
posted @ 2019-03-23 13:56 小小超plus 阅读(246) 评论(0) 推荐(0)
摘要:public class CheckBoxTest extends JFrame{ private static final long serialVersionUID = 1L; private JPanel panel1 = new JPanel(); private JPanel panel2 阅读全文
posted @ 2019-03-23 13:09 小小超plus 阅读(440) 评论(0) 推荐(0)
摘要:public class asd extends JFrame{ public asd() { // TODO Auto-generated constructor stub Container c = getContentPane(); setLayout(new GridLayout(2,2,5,5)); JRadio... 阅读全文
posted @ 2019-03-23 12:35 小小超plus 阅读(238) 评论(0) 推荐(0)
摘要:public class JButtonTest extends JFrame{ public JButtonTest() { // TODO Auto-generated constructor stub Icon icon = new ImageIcon("src/huasacm.png"); setLayout(new GridLay... 阅读全文
posted @ 2019-03-22 14:26 小小超plus 阅读(292) 评论(0) 推荐(0)
摘要:public class JscrollPaneTest extends JFrame{ public JscrollPaneTest() { // TODO Auto-generated constructor stu Container c = getContentPane(); JTextArea ta = new JTextAre... 阅读全文
posted @ 2019-03-22 14:08 小小超plus 阅读(652) 评论(0) 推荐(0)
摘要:public class JPanelTest extends JFrame{ public JPanelTest() { // TODO Auto-generated constructor stub Container c = getContentPane(); setLayout(new GridLayout(2,2,10,10)); JP... 阅读全文
posted @ 2019-03-22 13:48 小小超plus 阅读(445) 评论(0) 推荐(0)
摘要:public class GridLayoutPsoition extends JFrame{ public GridLayoutPsoition() { // TODO Auto-generated constructor stub Container c = getContentPane(); setLayout(new GridLayout(7,3,... 阅读全文
posted @ 2019-03-22 13:31 小小超plus 阅读(136) 评论(0) 推荐(0)