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

📄 frame2.java

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

import java.awt.*;
import javax.swing.*;
import net.sourceforge.mlf.metouia.MetouiaLookAndFeel;
import net.aetherial.gis2.publicuse.SystemItem;
import net.aetherial.gis2.surface.systemtools.JSplitPane;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2004</p>
 *
 * <p>Company: </p>
 *
 * @author not attributable
 * @version 1.0
 */
public class Frame2
    extends JFrame {
  BorderLayout borderLayout1 = new BorderLayout();
  net.aetherial.gis2.surface.systemtools.JSplitPane jSplitPane1 = new net.aetherial.gis2.surface.systemtools.JSplitPane();
  JTextPane jTextPane2 = new JTextPane();
  JLabel jLabel1 = new JLabel();
  JButton jButton1 = new JButton();

  public Frame2() {
    try {
      jbInit();
    }
    catch (Exception exception) {
      exception.printStackTrace();
    }
  }

  private void jbInit() throws Exception {
    getContentPane().setLayout(borderLayout1);
    jButton1.setText("jButton1");
    jButton1.addActionListener(new Frame2_jButton1_actionAdapter(this));
    this.getContentPane().add(jSplitPane1, java.awt.BorderLayout.CENTER);
    this.getContentPane().add(jButton1, java.awt.BorderLayout.NORTH);
    jTextPane2.setText("jTextPane2");
    jLabel1.setText("jLabel1");
    jSplitPane1.setOrientation(JSplitPane.VERTICAL_SPLIT);
    jSplitPane1.addComponet(jTextPane2, JSplitPane.RIGHT);
    jSplitPane1.addComponet(jLabel1, JSplitPane.LEFT);
    this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  }
  public static void main(String args[]){
    try {
      UIManager.setLookAndFeel(new MetouiaLookAndFeel());
    }
    catch (Exception ex) {
    }
    Frame2 fm= new Frame2();
    fm.show();
  }
  public void show(){
    Dimension screenDim = Toolkit.getDefaultToolkit().getScreenSize();
    this.setIconImage(SystemItem.getImage("HSDIlogo.gif"));
    this.setTitle(SystemItem.SOFTWARE_NAME);
    this.setExtendedState(Frame.MAXIMIZED_BOTH);
    this.setSize(830, 700);
    this.setLocation(
        (screenDim.width - 830) / 2,
        (screenDim.height - 700) / 2
        );
    super.show();
  }

  public void jButton1_actionPerformed(ActionEvent e) {
    this.jSplitPane1.printTemp();
  }

}

class Frame2_jButton1_actionAdapter
    implements ActionListener {
  private Frame2 adaptee;
  Frame2_jButton1_actionAdapter(Frame2 adaptee) {
    this.adaptee = adaptee;
  }

  public void actionPerformed(ActionEvent e) {
    adaptee.jButton1_actionPerformed(e);
  }
}

⌨️ 快捷键说明

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