📄 form1.java
字号:
import com.ms.wfc.app.*;
import com.ms.wfc.core.*;
import com.ms.wfc.ui.*;
import com.ms.wfc.html.*;
/**
* This class can take a variable number of parameters on the command
* line. Program execution begins with the main() method. The class
* constructor is not invoked unless an object of type 'Form1' is
* created in the main() method.
*/
public class Form1 extends Form
{
public Form1()
{
// Required for Visual J++ Form Designer support
initForm();
// TODO: Add any constructor code after initForm call
}
/**
* Form1 overrides dispose so it can clean up the
* component list.
*/
public void dispose()
{
super.dispose();
components.dispose();
}
private void Form1_click(Object source, Event e)
{
}
private void Form1_closing(Object source, CancelEvent e)
{
}
private void pictureBox1_click(Object source, Event e)
{
}
private void pictureBox1_mouseDown(Object source, MouseEvent e)
{
}
private void label1_click(Object source, Event e)
{
}
/**
* 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();
PictureBox pictureBox1 = new PictureBox();
Edit edit1 = new Edit();
Label label1 = new Label();
private void initForm()
{
this.setText("Form1");
this.setAutoScaleBaseSize(new Point(6, 12));
this.setClientSize(new Point(292, 266));
this.addOnClick(new EventHandler(this.Form1_click));
this.addOnClosing(new CancelEventHandler(this.Form1_closing));
pictureBox1.setLocation(new Point(24, 40));
pictureBox1.setSize(new Point(240, 208));
pictureBox1.setTabIndex(0);
pictureBox1.setTabStop(false);
pictureBox1.setText("pictureBox1");
pictureBox1.addOnClick(new EventHandler(this.pictureBox1_click));
pictureBox1.addOnMouseDown(new MouseEventHandler(this.pictureBox1_mouseDown));
edit1.setLocation(new Point(56, 64));
edit1.setSize(new Point(160, 19));
edit1.setTabIndex(1);
edit1.setText("edit1");
label1.setLocation(new Point(48, 16));
label1.setSize(new Point(168, 24));
label1.setTabIndex(2);
label1.setTabStop(false);
label1.setText("label1");
label1.addOnClick(new EventHandler(this.label1_click));
this.setNewControls(new Control[] {
label1,
edit1,
pictureBox1});
}
/**
* The main entry point for the application.
*
* @param args Array of parameters passed to the application
* via the command line.
*/
public static void main(String args[])
{
Application.run(new Form1());
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -