home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1998 July & August
/
Pcwk78a98.iso
/
Micrsoft
/
VJ
/
VJ98
/
WIZARDS
/
TEMPLATE
/
AW2.TEM
< prev
next >
Wrap
Text File
|
1998-02-12
|
2KB
|
85 lines
//%FILENAME%.java
import com.ms.wd.app.*;
import com.ms.wd.core.*;
import com.ms.wd.ui.*;
/**
* @author: Application Wizard
* @version: 1.0
*/
public class %FILENAME% extends Form
{
public void menuItem2_Click(Object sender, Event e)
{
// Exit
Application.exit();
}
public %FILENAME%()
{
//Required for Visual J++ Form Designer support
initForm();
//TODO: Add any constructor code after initForm call
}
public static void main(String args[])
{
Application.run(new %FILENAME%());
}
/*
* NOTE: The following code is required by the Visual J++ form
* designer. It can be modified using the form editor. Do not
* modify it using the code editor.
*/
Container components = new Container();
MainMenu mainMenu1 = new MainMenu();
MenuItem menuItem1 = new MenuItem();
MenuItem menuItem2 = new MenuItem();
MenuItem menuItem3 = new MenuItem();
MenuItem menuItem4 = new MenuItem();
MenuItem menuItem5 = new MenuItem();
MenuItem menuItem6 = new MenuItem();
MenuItem menuItem7 = new MenuItem();
MenuItem menuItem8 = new MenuItem();
void initForm()
{
menuItem2.setText("E&xit");
menuItem2.addOnClick(new EventHandler(this.menuItem2_Click));
menuItem1.setMenuItems(new MenuItem[] {
menuItem2});
menuItem1.setText("&File");
menuItem4.setText("Cu&t");
menuItem5.setText("&Cut");
menuItem6.setText("&Paste");
menuItem3.setMenuItems(new MenuItem[] {
menuItem4,
menuItem5,
menuItem6});
menuItem3.setText("&Edit");
menuItem8.setText("&About");
menuItem7.setMenuItems(new MenuItem[] {
menuItem8});
menuItem7.setText("&Help");
mainMenu1.setMenuItems(new MenuItem[] {
menuItem1,
menuItem3,
menuItem7});
/* @designTimeOnly mainMenu1.setLocation(new Point(104, 127)); */
this.setBackColor(Color.CONTROL);
this.setLocation(new Point(175, 102));
this.setSize(new Point(300, 300));
this.setText("%FILENAME%");
this.setAutoScaleBaseSize(13);
this.setClientSize(new Point(292, 253));
this.setMenu(mainMenu1);
}
//NOTE: End of form designer support code.
}