simpletoolapp.java~1~

来自「基于JAVA的电子地图程序,包括自定义地力工具制做,地图平台为MAPXTREME」· JAVA~1~ 代码 · 共 32 行

JAVA~1~
32
字号
/**
* Copyright 2000 MapInfo Corporation
* You are free to use this code in your applications, but you may not
* redistribute the source code without this notice.
*/

import java.awt.*;
import java.awt.event.*;

public class SimpleToolApp {

	
	public SimpleToolApp() {
		Frame frame = new SimpleToolFrame();
		//Center the window
		Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
		Dimension frameSize = frame.getSize();
		if (frameSize.height > screenSize.height) {
			frameSize.height = screenSize.height;
		}
		if (frameSize.width > screenSize.width) {
			frameSize.width = screenSize.width;
		}
		frame.setLocation((screenSize.width - frameSize.width)/2, (screenSize.height - frameSize.height)/2);
		frame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { System.exit(0); } });
		frame.setVisible(true);
	}

	public static void main(String[] args) {
		new SimpleToolApp();
	}
} 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?