博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年8月8日

摘要: import javax.swing.*;import java.applet.Applet;import java.awt.*;import java.awt.geom.Point2D;import java.util.Vector;public class DrawStar extends Applet { Vector<Point2D.Double> points = new Vect... 阅读全文

posted @ 2012-08-08 16:54 紫冰龙 阅读(209) 评论(0) 推荐(0) 编辑

摘要: import javax.swing.*;import java.awt.*;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;public class DrawDemo extends JPanel{ /*public void paintComponent(Graphics g) { ... 阅读全文

posted @ 2012-08-08 14:37 紫冰龙 阅读(477) 评论(0) 推荐(0) 编辑

摘要: import javax.swing.*;import java.awt.event.*;import java.awt.*;public class Exec69 extends JFrame{ JTextField text; JTextArea re; JLabel label; public Exec69() { setSize(400,400); ... 阅读全文

posted @ 2012-08-08 12:38 紫冰龙 阅读(328) 评论(0) 推荐(0) 编辑

摘要: import javax.swing.*;import java.awt.*;import java.awt.event.*;public class Exec68 extends JFrame{ JTextField text; Boolean flag1,flag2; public Exec68() { setSize(400,500); setD... 阅读全文

posted @ 2012-08-08 11:41 紫冰龙 阅读(136) 评论(0) 推荐(0) 编辑

摘要: import javax.swing.*;import java.awt.event.*;import java.awt.*;public class Exec67 extends JFrame implements ActionListener{ JDialog win1,win2; public Exec67() { setTitle("Test"); ... 阅读全文

posted @ 2012-08-08 11:08 紫冰龙 阅读(178) 评论(0) 推荐(0) 编辑

摘要: import javax.swing.*;import java.awt.event.*;import java.awt.*;public class Exec66 extends JFrame implements ActionListener{ JTextField text; static int i=0; public Exec66() { this.set... 阅读全文

posted @ 2012-08-08 09:25 紫冰龙 阅读(414) 评论(0) 推荐(0) 编辑

摘要: import javax.swing.*;import java.awt.*;import java.awt.event.*;public class Exec65 extends JFrame implements ItemListener{ JComboBox box; JTextField text; static String[] lessons = {"语文","数学"... 阅读全文

posted @ 2012-08-08 09:07 紫冰龙 阅读(123) 评论(0) 推荐(0) 编辑

2012年8月7日

摘要: JList 单击 ,双击例 import javax.swing.*;import javax.swing.event.ListSelectionEvent;import javax.swing.event.ListSelectionListener;import java.awt.event.*;import java.awt.*;public class Exec64 extends ... 阅读全文

posted @ 2012-08-07 22:05 紫冰龙 阅读(1555) 评论(0) 推荐(0) 编辑

摘要: import javax.swing.*;import java.awt.FlowLayout;import java.awt.event.*;public class Exec73 extends JFrame implements ActionListener{ /** * @param args */ public static void main(Stri... 阅读全文

posted @ 2012-08-07 21:34 紫冰龙 阅读(138) 评论(0) 推荐(0) 编辑

摘要: import javax.swing.*;import java.awt.FlowLayout;import java.awt.event.*;public class Exec61 extends JFrame implements ActionListener{ JTextField text; JCheckBox jc1,jc2,jc3; Exec61(){ ... 阅读全文

posted @ 2012-08-07 18:18 紫冰龙 阅读(151) 评论(0) 推荐(0) 编辑