📄 ts.java
字号:
//ts.java
import com.ms.wfc.app.*;
import com.ms.wfc.core.*;
import com.ms.wfc.ui.*;
/**
* @author: Application Wizard
* @version: 1.0
* 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 'ts' * created in the main() method.
*/
public class ts extends Form
{
public ts()
{
super();
//Required for Visual J++ Form Designer support
initForm();
//TODO: Add any constructor code after initForm call
}
/** * ts overrides dispose so it can clean up the * component list. */
public void dispose()
{
super.dispose();
components.dispose();
}
private void ts_click(Object source, Event e)
{
}
private void label1_click(Object source, Event e)
{
}
private void button1_click(Object source, Event e)
{
Project3 Project3frm;
Project3frm = new Project3();
Project3frm.show();
}
private void pictureBox1_click(Object source, Event e)
{
}
private void groupBox1_enter(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();
Button button1 = new Button();
PictureBox pictureBox1 = new PictureBox();
Label label1 = new Label();
private void initForm()
{
// NOTE: This form is storing resource information in an
// external file. Do not modify the string parameter to any
// resources.getObject() function call. For example, do not
// modify "foo1_location" in the following line of code
// even if the name of the Foo object changes:
// foo1.setLocation((Point)resources.getObject("foo1_location"));
IResourceManager resources = new ResourceManager(this, "ts");
this.setAnchor(ControlAnchor.ALL);
this.setBackColor(Color.CONTROLDARKDARK);
this.setFont(new Font("幼圆", 22.0f, FontSize.POINTS, FontWeight.BOLD, true, false, false, CharacterSet.DEFAULT, 0));
this.setForeColor(new Color(0, 0, 192));
this.setLocation(new Point(298, 88));
this.setText("ts");
this.setAutoScaleBaseSize(new Point(16, 29));
this.setBorderStyle(FormBorderStyle.NONE);
this.setClientSize(new Point(800, 600));
this.setControlBox(false);
this.setIcon((Icon)resources.getObject("this_icon"));
this.setStartPosition(FormStartPosition.CENTER_SCREEN);
this.addOnClick(new EventHandler(this.ts_click));
button1.setFont(new Font("幼圆", 11.0f, FontSize.POINTS, FontWeight.BOLD, true, false, false, CharacterSet.DEFAULT, 0));
button1.setLocation(new Point(536, 496));
button1.setSize(new Point(192, 32));
button1.setTabIndex(0);
button1.setText("进入图书馆集成管理系统");
button1.addOnClick(new EventHandler(this.button1_click));
pictureBox1.setAnchor(ControlAnchor.NONE);
pictureBox1.setLocation(new Point(132, 86));
pictureBox1.setSize(new Point(600, 399));
pictureBox1.setTabIndex(1);
pictureBox1.setTabStop(false);
pictureBox1.setText("pictureBox1");
pictureBox1.setImage((Bitmap)resources.getObject("pictureBox1_image"));
pictureBox1.setSizeMode(PictureBoxSizeMode.AUTO_SIZE);
pictureBox1.addOnClick(new EventHandler(this.pictureBox1_click));
label1.setFont(new Font("隶书", 24.0f, FontSize.POINTS, FontWeight.BOLD, true, false, false, CharacterSet.DEFAULT, 0));
label1.setForeColor(Color.RED);
label1.setLocation(new Point(24, 56));
label1.setSize(new Point(56, 432));
label1.setTabIndex(2);
label1.setTabStop(false);
label1.setText("欢迎进入图书馆集成管理系统");
this.setNewControls(new Control[] {
label1,
button1,
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 ts());
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -