📄 idocmain.java
字号:
package com.idoc.app;
/**
* <p>Title: IDOC Interface</p>
* <p>Description: IDOC 转换器</p>
* <p>Copyright: Copyright (c) 2004</p>
* <p>Company: SiChuan XinHua</p>
* @author Richary
* @version 1.0
*/
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
import javax.swing.JApplet;
import javax.swing.ImageIcon;
import com.idoc.file.WriteData;
import java.net.URL;
import com.idoc.util.GetProperty;
public class IDOCMain {
boolean packFrame = false;
private boolean isStandalone = false;
LogPanel panel = new LogPanel();
URL icoURL = null;
public IDOCMain() {
panel = new LogPanel();
}
public void init() {
URL url = null;
try {
url = com.idoc.app.IDOCMain.class.getResource("jpg.jpg");
}catch(Exception ex1) {
//
}
String dir = url.toString();
dir = dir.substring(6,8);
WriteData.mklist(dir);
GetProperty getdata = new GetProperty();
getdata.getPropertiesData();
Frame1 frame = new Frame1();
panel.intializtion();
//Validate frames that have preset sizes
//Pack frames that have useful preferred size info, e.g. from their layout
if (packFrame) {
frame.pack();
}
else {
frame.validate();
}
frame.getContentPane().add(panel);
frame.setIconImage((new ImageIcon(url)).getImage());
frame.setTitle("SAP转换器 -- 日志查询");
frame.setSize(950,520);
Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
frame.setLocation((d.width - frame.getSize().width) / 2, (d.height - frame.getSize().height) / 2);
frame.setVisible(true);
//
}
public static void main(String[] args) {
IDOCMain idoc = new IDOCMain();
idoc.init();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -