摘要: 1 public class JProgressBarTest extends JFrame{ 2 3 public JProgressBarTest() { 4 super(); 5 setTitle("表格"); 6 setBounds(100,100,350,150); 7 setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 8 final JButton button = new JButton(" "); 9 f... 阅读全文
posted @ 2013-09-22 10:53 魏飞 阅读(801) 评论(0) 推荐(0) 编辑
摘要: 1 public class MenuBarKnow extends JFrame 2 { 3 JMenuBar jMenuBar; 4 5 JMenu jMenuFile,jMenuEditor,jMenuAbout; 6 JMenu jMenuOpen; 7 8 JMenuItem jMenuItemSave,jMenuItemEditor,jMenuItemExit; 9 JMenuItem jMenuItemWord,jMenuItemTxt;10 11 public MenuBarKnow()12 ... 阅读全文
posted @ 2013-09-22 10:48 魏飞 阅读(1515) 评论(0) 推荐(1) 编辑
摘要: 1 public class JTabbedPaneKnow extends JFrame 2 { 3 JTabbedPane jTabbedPane; 4 JPanel jPanelRed; 5 JPanel jPanelGreen; 6 JPanel jPanelYellow; 7 JPanel jPanelBlue; 8 public JTabbedPaneKnow() 9 {10 init();11 this.setBounds(200, 50, 500, 500);12 this... 阅读全文
posted @ 2013-09-22 10:19 魏飞 阅读(1707) 评论(0) 推荐(0) 编辑
摘要: 1 public class JSplitPaneKnow extends JFrame 2 { 3 JSplitPane jSplitPane; 4 JPanel jPanelRed; 5 JPanel jPanelBlue; 6 7 public JSplitPaneKnow() 8 { 9 this.setBounds(300, 100, 400, 400);10 this.setTitle("分屏设计");11 this.setDefaultCloseOperation(JFrame.E... 阅读全文
posted @ 2013-09-22 10:18 魏飞 阅读(464) 评论(0) 推荐(0) 编辑
摘要: 1 /** 2 * 本例结合JList和JScrollPane共同使用 3 * @author Wfei 4 * 5 */ 6 public class JListKnow extends JFrame 7 { 8 JList jListKnow01; 9 JList jListKnow02;10 JScrollPane jScrollPane02;11 12 JSplitPane jSplitPane;13 JPanel jPanelTop;14 JPanel jPanelBottom;15 public JListK... 阅读全文
posted @ 2013-09-22 10:18 魏飞 阅读(3202) 评论(0) 推荐(0) 编辑
摘要: 1 /** 2 * 对话框 - 学习笔记 3 * @author Wfei 4 * 5 */ 6 public class JoptionPaneKnow extends JFrame 7 { 8 public JoptionPaneKnow() 9 {10 init();11 12 this.setLayout(null);13 this.setSize(400, 400);14 //这里设置为null的意思是:该this是相对于那个父窗口居中15 this.setLoc... 阅读全文
posted @ 2013-09-22 10:15 魏飞 阅读(675) 评论(0) 推荐(0) 编辑
摘要: 1 /** 2 * JDilog学习笔记 3 * @author Wfei 4 * 5 */ 6 public class JDialogKnow extends JFrame 7 { 8 JDialog jDialog; 9 JButton jButton;10 public JDialogKnow()11 {12 init();13 14 this.setTitle("主窗体");15 this.setLayout(null);16 this.setSize(500, ... 阅读全文
posted @ 2013-09-22 10:14 魏飞 阅读(1013) 评论(0) 推荐(0) 编辑
摘要: 1 public class WindowListenerKnow extends JFrame 2 { 3 public WindowListenerKnow() 4 { 5 this.setBounds(300, 100, 400, 400); 6 this.setTitle("我是测试【x】按钮关闭方法的"); 7 this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 8 } 9 public void init()10 {11 1... 阅读全文
posted @ 2013-09-22 10:13 魏飞 阅读(2591) 评论(0) 推荐(0) 编辑
摘要: 1 public class BackgroundImage extends JFrame 2 { 3 public BackgroundImage() 4 { 5 this.setTitle("窗体背景图片设置方法"); 6 this.setSize(700, 471); 7 8 JPanel jPanel = new JPanel() 9 {10 11 @Override12 protected void paintComponent(Grap... 阅读全文
posted @ 2013-09-22 10:09 魏飞 阅读(1927) 评论(1) 推荐(0) 编辑
摘要: 找个人 阅读全文
posted @ 2013-09-10 20:42 魏飞 阅读(129) 评论(0) 推荐(0) 编辑
你见

或者不见我
我就在那里
不悲不喜
你念

或者不念我
情就在那里
不来不去
你爱

或者不爱我
爱就在那里
不增不减
你跟

或者不跟我
我的手就在你的手里
不舍不弃
来我怀里
或者
让我住进你的心里
默然

相爱
寂静

喜欢
Mr Frank