Welcome![Sign In][Sign Up]
Location:
Downloads SourceCode Windows Develop GUI Develop Button control
Title: Demo7 Download
 Description: package cn import java.awt.* import java.awt.event.ActionEvent import java.awt.event.ActionListener import java.awt.event.WindowAdapter import java.awt.event.WindowEvent public class Mywindow extends Frame implements ActionListener{ private MenuBar mb=new MenuBar() private Menu menu1=new Menu("文件") private Menu menu2=new Menu("查看") private MenuItem mi_open=new MenuItem("打开") private MenuItem mi_save=new MenuItem("保存") private MenuItem mi_state=new MenuItem("状态") private TextField t1=new TextField(10) private TextField t2=new TextField(10) private TextField t3=new TextField(10) private Button bt=new Button("求和") public Mywindow(){ this.setTitle("这是我的第一个窗口程序") menu1.add(mi_open) menu1.add(mi_save) menu2.add(mi_state) mb.add(menu1) mb.add(menu2) this.setMenuBar(mb) this.setLayout(new FlowLayout()) this.add(t1) this.add(t2) this.add(bt) this.add(t3) t3.setEditable(false) bt.addActio
 To Search:
File list (Check if you may need any files):
Demo7\.classpath
.....\.project
.....\.settings\org.eclipse.jdt.core.prefs
.....\bin\cn\test\MyFrame$1.class
.....\...\..\....\MyFrame.class
.....\src\cn\test\MyFrame.java
.....\bin\cn\test
.....\src\cn\test
.....\bin\cn
.....\src\cn
.....\.settings
.....\bin
.....\src
Demo7
    

CodeBus www.codebus.net