📄 objcode.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 'ObjCode'
* created in the main() method.
*/
public class ObjCode extends Form
{
Form1 main_form;
public ObjCode()
{
super();
// Required for Visual J++ Form Designer support
initForm();
}
/**
* ObjCode overrides dispose so it can clean up the
* component list.
*/
public void dispose()
{
super.dispose();
components.dispose();
}
private void close_click(Object source, Event e)
{
this.close();
}
/**
* 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();
ListBox lb_ojbcode = new ListBox();
Button close = new Button();
private void initForm()
{
this.setBackColor(new Color(0, 80, 120));
this.setText("PL/0 目标码查看器");
this.setAutoScaleBaseSize(new Point(6, 12));
this.setBorderStyle(FormBorderStyle.SIZABLE_TOOLWINDOW);
this.setClientSize(new Point(168, 402));
this.setStartPosition(FormStartPosition.CENTER_SCREEN);
lb_ojbcode.setLocation(new Point(8, 8));
lb_ojbcode.setSize(new Point(152, 364));
lb_ojbcode.setTabIndex(0);
lb_ojbcode.setText("listBox1");
lb_ojbcode.setUseTabStops(true);
close.setLocation(new Point(48, 376));
close.setSize(new Point(75, 23));
close.setTabIndex(1);
close.setText("关闭");
close.addOnClick(new EventHandler(this.close_click));
this.setNewControls(new Control[] {
close,
lb_ojbcode});
}
/**
* 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 ObjCode());
}
public void Refresh()
{
lb_ojbcode.removeAll();
Injunction in=new Injunction();
for(int i=0;i<Glb.ObjCode.size();i++)
{
in=(Injunction)Glb.ObjCode.elementAt(i);
lb_ojbcode.addItem(""+i+":"+InType.get_instr(in.cmd)+" "+in.A1+" "+in.A2);
}
}
public void Show(Form1 main_form)
{
this.main_form=main_form;
this.show();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -