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

📄 dialogsetpath.java

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

import java.awt.*;
import javax.swing.*;
import com.borland.jbcl.layout.XYLayout;
import com.borland.jbcl.layout.*;

/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2004</p>
 *
 * <p>Company: </p>
 *
 * @author not attributable
 * @version 1.0
 */
public class DialogSetPath
    extends JDialog {
  JPanel panel1 = new JPanel();
  XYLayout xYLayout1 = new XYLayout();
  JLabel jTitle = new JLabel();
  JTextField jInput = new JTextField();
  JButton jRun = new JButton();
  JTextField jOutput = new JTextField();
  JLabel jLabel1 = new JLabel();
  JLabel jLabel2 = new JLabel();

  public DialogSetPath(Frame owner, String title, boolean modal) {
    super(owner, title, modal);
    try {
      setDefaultCloseOperation(DISPOSE_ON_CLOSE);
      jbInit();
      init();
      //pack();
    }
    catch (Exception exception) {
      exception.printStackTrace();
    }
  }

  public DialogSetPath(String title) {
    this(new Frame(), "DialogSetPath", false);
    this.setTitle(title);
  }
  public void setTitle(String titleString){
    this.setTitle(titleString);
    this.jTitle.setText(titleString);
  }
  public String getInputPath(){
    return this.jInput.getText();
  }
  public String getOutputPath(){
    return this.jOutput.getText();
  }
  public void init(){
    this.setSize(500,500);
    this.show();
  }
  private void jbInit() throws Exception {

    panel1.setLayout(xYLayout1);
    jTitle.setFont(new java.awt.Font("宋体", Font.BOLD, 20));
    jTitle.setText("title");
    jInput.setText("jTextField1");
    jRun.setText("运行");
    jOutput.setText("jTextField2");
    jLabel1.setText("输入路径");
    jLabel2.setText("输出路径");
    getContentPane().add(panel1);
    panel1.add(jTitle, new XYConstraints(69, 18, 265, 29));
    panel1.add(jRun, new XYConstraints(140, 223, -1, -1));
    panel1.add(jInput, new XYConstraints(121, 70, 205, -1));
    panel1.add(jOutput, new XYConstraints(121, 119, 205, -1));
    panel1.add(jLabel1, new XYConstraints(38, 69, 53, 22));
    panel1.add(jLabel2, new XYConstraints(39, 113, 68, 23));
  }
}

⌨️ 快捷键说明

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