摘要: 闪客天堂教程站 http://study.flasher.cn 高手网页制作教程Flash专栏 http://school.gaoshou.net/1/index.html 闪吧 http://www.flash8.net 阅读全文
posted @ 2005-05-27 15:04 Rookie.Zhang 阅读(489) 评论(0) 推荐(0) 编辑
摘要: 1//例子1 2import java.util.*; 3public class LinkListOne 4{public static void main(String args[]) 5 { LinkedList mylist=new LinkedList(); 6 mylist.add("It"); //链表中的第一个节点。 7 mylist.... 阅读全文
posted @ 2005-05-27 14:38 Rookie.Zhang 阅读(1051) 评论(0) 推荐(0) 编辑
摘要: 1//例子1 2import javax.swing.*;import java.awt.*;import java.awt.event.*; 3public class Example25_1 4{ public static void main(String args[]) 5 { JButton button=new JButton("轻组件按钮"); ... 阅读全文
posted @ 2005-05-27 14:32 Rookie.Zhang 阅读(1732) 评论(0) 推荐(0) 编辑
摘要: 1//例子1 2import java.applet.*;import java.awt.*; 3import java.awt.event.*; 4public class Example24_1 extends Applet implements ActionListener 5{ AudioClip clip;//声明一个音频对象 6 Button button_pla... 阅读全文
posted @ 2005-05-27 10:18 Rookie.Zhang 阅读(1435) 评论(4) 推荐(0) 编辑
摘要: 1//例子1 2import java.sql.*; 3public class Example23_1 4{ public static void main(String args[]) 5 { Connection con;Statement sql; ResultSet rs; 6 try { Class.forName("sun.jdbc.odbc.Jd... 阅读全文
posted @ 2005-05-27 10:12 Rookie.Zhang 阅读(1479) 评论(0) 推荐(0) 编辑
摘要: 1//例子1 2import java.applet.*; 3import java.awt.*; 4public class Example22_1 extends Applet 5{ Image img; 6 public void start() 7 { img=getImage(getCodeBase(),"vintdev.jpg"); 8 } 9 ... 阅读全文
posted @ 2005-05-27 10:10 Rookie.Zhang 阅读(980) 评论(0) 推荐(0) 编辑
摘要: 1//例子1 2import java.applet.*;import java.awt.*; 3import java.awt.event.*;import java.net.*; 4public class Example21_1 extends Applet implements ActionListener 5{ Button button; 6 URL url; ... 阅读全文
posted @ 2005-05-27 10:08 Rookie.Zhang 阅读(940) 评论(0) 推荐(0) 编辑
摘要: 1//例子1 2import java.io.*; 3class Example20_1 4{ public static void main(String args[]) 5 { File f1=new File("F:\\8000","Example20_1.java"); 6 File f2=new File("F:\\8000"); 7 S... 阅读全文
posted @ 2005-05-27 10:04 Rookie.Zhang 阅读(1138) 评论(0) 推荐(0) 编辑
摘要: 1//例子1 2public class Example19_1 3{ public static void main(String args[]) 4 { Lefthand left; 5 Righthand right; 6 left=new Lefthand() ;//创建线程。 7 right=new Righthand();... 阅读全文
posted @ 2005-05-27 09:40 Rookie.Zhang 阅读(906) 评论(1) 推荐(0) 编辑
摘要: 1//例子1 2import java.applet.*;import java.awt.*; 3import java.awt.event.*; 4public class Example18_1 extends Applet implements MouseListener 5{ TextField text; 6 public void init() 7 { ... 阅读全文
posted @ 2005-05-27 09:36 Rookie.Zhang 阅读(2548) 评论(1) 推荐(0) 编辑
摘要: 1//例子1 2import java.applet.*;import java.awt.*; 3public class Example17_1 extends Applet 4{ public void paint(Graphics g) 5 { int y,x=120; 6 g.drawString("计算机科学技术",10,20); 7 g.... 阅读全文
posted @ 2005-05-27 09:30 Rookie.Zhang 阅读(1281) 评论(0) 推荐(0) 编辑
摘要: 1//例子1 2import java.awt.event.*; import java.awt.*; 3class MyDialog extends Dialog implements ActionListener //建立对话框类。 4{ static final int YES=1,NO=0; 5 int message=-1; Button yes,no; 6 ... 阅读全文
posted @ 2005-05-27 09:18 Rookie.Zhang 阅读(993) 评论(0) 推荐(0) 编辑
摘要: 1//例子1 2import java.awt.*;import java.awt.event.*; 3class MyFrame extends Frame implements ItemListener,ActionListener 4{ Checkbox box; TextArea text; Button button; 5 MyFrame(String s) 6 ... 阅读全文
posted @ 2005-05-27 09:11 Rookie.Zhang 阅读(1162) 评论(1) 推荐(0) 编辑
摘要: 1//例子1 2import java.applet.*;import java.awt.*; 3import java.awt.event.*; 4import javax.swing.JTextArea; 5public class Example14_1 extends Applet implements ItemListener 6{ List list ; 7 ... 阅读全文
posted @ 2005-05-27 09:09 Rookie.Zhang 阅读(706) 评论(0) 推荐(0) 编辑
摘要: 1//例子1 2import java.applet.*;import java.awt.*; 3class Mypanel1 extends Panel 4{ Checkbox box1,box2,box3;CheckboxGroup sex; 5 Mypanel1() 6 { sex=new CheckboxGroup(); 7 box1=new C... 阅读全文
posted @ 2005-05-27 09:07 Rookie.Zhang 阅读(853) 评论(0) 推荐(0) 编辑
摘要: 1//例子1 2import java.applet.*;import java.awt.*; 3public class Example12_1 extends Applet 4{ public void init() 5 { FlowLayout flow=new FlowLayout(); 6 flow.setAlignment(FlowLayout.LE... 阅读全文
posted @ 2005-05-27 09:06 Rookie.Zhang 阅读(763) 评论(0) 推荐(0) 编辑
摘要: 1//例子1 2import java.applet.*;import java.awt.*;import java.awt.event.*; 3class Mypanel extends Panel implements ActionListener 4{ Button button1,button2,button3; 5 Color backColor; 6 ... 阅读全文
posted @ 2005-05-27 09:04 Rookie.Zhang 阅读(805) 评论(0) 推荐(0) 编辑
摘要: 1//例子1 2import java.applet.*;import java.awt.*;import java.awt.event.*; 3public class Example10_1 extends Applet implements ActionListener 4{ TextField text; 5 Button buttonEnter,buttonQuit... 阅读全文
posted @ 2005-05-27 09:01 Rookie.Zhang 阅读(856) 评论(0) 推荐(0) 编辑
摘要: 1//例子1 2import java.applet.*;import java.awt.*; 3public class Boy extends Applet 4{ TextField text1,text2,text3; 5 public void init() 6 { text1=new TextField("输入密码:",10); 7 text1.... 阅读全文
posted @ 2005-05-27 08:59 Rookie.Zhang 阅读(1010) 评论(0) 推荐(0) 编辑
摘要: 1//例子1 2import java.applet.*; 3import java.awt.*; 4public class Example8_1 extends Applet 5{ Button button1; Button button2; 6 int sum; 7 public void init() 8 { button1=new Button("yes"); 9... 阅读全文
posted @ 2005-05-27 08:56 Rookie.Zhang 阅读(687) 评论(0) 推荐(0) 编辑