上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 15 下一页
摘要: 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 阅读(282) 评论(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 阅读(631) 评论(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 阅读(436) 评论(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 阅读(126) 评论(0) 推荐(0) 编辑
摘要: public class Borderlayout extends JFrame{ public Borderlayout() { // TODO Auto-generated constructor stub String[] border = {BorderLayout.CENTER,BorderLayout.NORTH,BorderLayout.SO... 阅读全文
posted @ 2019-03-22 13:13 小小超plus 阅读(214) 评论(0) 推荐(0) 编辑
摘要: public class FlowLayoutPosition extends JFrame{ public FlowLayoutPosition() { // TODO Auto-generated constructor stub setTitle("本窗口使用流布局管理器"); Container c = getContentPane(); ... 阅读全文
posted @ 2019-03-22 12:34 小小超plus 阅读(114) 评论(0) 推荐(0) 编辑
摘要: public class AbsolutePosition extends JFrame{ public AbsolutePosition() { // TODO Auto-generated constructor stub setTitle("本窗口使用绝对布局"); setLayout(null); setBounds(0,0,200,15... 阅读全文
posted @ 2019-03-22 12:25 小小超plus 阅读(359) 评论(0) 推荐(0) 编辑
摘要: public class Demo extends JFrame{ public Demo() { // TODO Auto-generated constructor stub setBounds(100,100,500,350); setDefaultCloseOperation(EXIT_ON_CLOSE); Container contai... 阅读全文
posted @ 2019-03-21 11:24 小小超plus 阅读(2690) 评论(0) 推荐(0) 编辑
摘要: public class Filetest { public static void main(String[] args) { // TODO Auto-generated method stub File file = new File("word.txt"); try { FileOutputStream o... 阅读全文
posted @ 2019-03-21 11:02 小小超plus 阅读(168) 评论(0) 推荐(0) 编辑
摘要: public class MyJDialog extends JDialog{ public MyJDialog(MyFrame frame) { // TODO Auto-generated constructor stub super(frame,"第一个JDialog窗体",true); Container container = g... 阅读全文
posted @ 2019-03-20 22:50 小小超plus 阅读(4901) 评论(0) 推荐(1) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 15 下一页