⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testnewframe.java

📁 基于Java的地图数据管理软件。使用MySQL数据库管理系统。
💻 JAVA
字号:
package net.aetherial.gis.surface.main;

import java.awt.*;
import javax.swing.*;
import net.aetherial.gis.surface.main.NewJMenuBar;
import net.aetherial.gis.surface.main.JPanelTrack;
import net.aetherial.gis.surface.main.JPanelWaypoint;
import net.aetherial.gis.surface.ItemValue;
import net.aetherial.gis.surface.FrameMain;
import net.sourceforge.mlf.metouia.MetouiaLookAndFeel;
/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2004</p>
 *
 * <p>Company: </p>
 *
 * @author not attributable
 * @version 1.0
 */
public class TestNewFrame
    extends JFrame {
  BorderLayout borderLayout1 = new BorderLayout();
  NewJMenuBar jMenuBar = new NewJMenuBar();
  NewJToolBar jToolBar1 = new NewJToolBar();
  JPanelWaypoint jPanel1 = new JPanelWaypoint();
  public TestNewFrame() {
    try {
      jbInit();
    }
    catch (Exception exception) {
      exception.printStackTrace();
    }
  }

  private void jbInit() throws Exception {
    getContentPane().setLayout(borderLayout1);
    this.setJMenuBar(jMenuBar);
    this.getContentPane().add(jPanel1, java.awt.BorderLayout.CENTER);
    this.getContentPane().add(jToolBar1, java.awt.BorderLayout.NORTH);

  }

  public static void main(String[] args) {

    Image imageGPSIcon = null;

    try {

      UIManager.setLookAndFeel(new MetouiaLookAndFeel());
    }
    catch (Exception ex) {
    }
    Dimension screenDim = Toolkit.getDefaultToolkit().getScreenSize();

    TestNewFrame testnewframe = new TestNewFrame();
    testnewframe.setIconImage(ItemValue.getImage("HSDIlogo.gif"));
    testnewframe.setTitle(ItemValue.SOFTWARE_NAME);

    testnewframe.setSize(830, 600);
    testnewframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    testnewframe.setLocation(
        (screenDim.width - 830) / 2,
        (screenDim.height - 600) / 2
        );
    testnewframe.show();

  }
}

⌨️ 快捷键说明

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