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

📄 frame3.java

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

import java.awt.*;
import javax.swing.*;
import net.aetherial.gis2.publicuse.SystemItem;
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 Frame3
    extends JFrame {
  BorderLayout borderLayout1 = new BorderLayout();
  JPanel jPanel2 = new JPanel();
  BorderLayout borderLayout2 = new BorderLayout();
  JPanel jPanel1 = new JPanel();
  Box box1 = Box.createHorizontalBox();
  JLabel jLabel1 = new JLabel();
  JLabel jLabel2 = new JLabel();
  BorderLayout borderLayout3 = new BorderLayout();
  JPanel jPanel3 = new JPanel();
  FlowLayout flowLayout1 = new FlowLayout();
  JLabel jLabel3 = new JLabel();
  public Frame3() {
    try {
      jbInit();
    }
    catch (Exception exception) {
      exception.printStackTrace();
    }
  }
  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 static void main(String args[]){
    try {
      UIManager.setLookAndFeel(new MetouiaLookAndFeel());
    }
    catch (Exception ex) {
    }
    Frame3 fm= new Frame3();
    fm.show();
  }

  private void jbInit() throws Exception {
    box1 = Box.createHorizontalBox();
    getContentPane().setLayout(borderLayout1);
    this.setDefaultCloseOperation(EXIT_ON_CLOSE);
    jLabel1.setText("jLabel1");
    jLabel2.setAlignmentY( (float) 0.0);
    jLabel2.setHorizontalAlignment(SwingConstants.RIGHT);
    jLabel2.setHorizontalTextPosition(SwingConstants.RIGHT);
    jLabel2.setText("jLabel2");
    jLabel2.setVerticalAlignment(SwingConstants.TOP);
    jLabel2.setVerticalTextPosition(SwingConstants.TOP);
    jPanel1.setLayout(borderLayout3);
    jPanel3.setBackground(Color.blue);
//    jPanel3.setMinimumSize(new Dimension(44, 10));
    jPanel3.setPreferredSize(new Dimension(44, 10));
    jPanel3.setToolTipText("");
    jPanel3.setLayout(flowLayout1);
    jLabel3.setAlignmentY( (float) 0.0);
    jLabel3.setText("jLabel3");
    this.getContentPane().add(jPanel2, java.awt.BorderLayout.CENTER);
    this.getContentPane().add(jPanel1, java.awt.BorderLayout.NORTH);
    box1.add(jLabel1);
    box1.add(jPanel3);
    jPanel3.add(jLabel2);
    jPanel3.add(jLabel3);
    jPanel1.add(box1, java.awt.BorderLayout.CENTER);
  }
}

⌨️ 快捷键说明

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