main.java~3~

来自「航班查询与订票系统 用Java与sqlserver2000来编写一个航班查询与订」· JAVA~3~ 代码 · 共 37 行

JAVA~3~
37
字号
package flight.Main;

import flight.assist.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

public class Main
    extends JFrame {
  private UpdateComboBox update;
  private Interface jiemian;

  public Main() {
    update = new UpdateComboBox();

    jiemian = new Interface();

    this.getContentPane().add(jiemian);
  }

  public static void main(String args[]) {
    //Get the System's look for the GUI
    try {
      UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    }
    catch (Exception e) {
    }

    Main frame = new Main();
    frame.setSize(570, 440);
    frame.setResizable(false);
    frame.setTitle("航班查询及定票系统");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.setVisible(true);
  }
}

⌨️ 快捷键说明

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