📄 jtbpathselect.java
字号:
package net.aetherial.gis.jiaotongbu.outputJTB.txtOutput.view;
import javax.swing.JPanel;
import java.awt.BorderLayout;
import java.awt.GridLayout;
import java.awt.CardLayout;
import java.awt.FlowLayout;
import com.borland.jbcl.layout.XYLayout;
import com.borland.jbcl.layout.*;
import net.aetherial.gis.publicuse.frame.PathSelect;
import net.aetherial.gis.jiaotongbu.output.show.SelectXian;
/**
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2004</p>
*
* <p>Company: </p>
*
* @author not attributable
* @version 1.0
*/
public class JTBPathSelect extends JPanel {
FrameToJTBInterface frame = null;
SelectXian selectXianShi = new SelectXian();
public JTBPathSelect() {
try {
jbInit();
}
catch (Exception ex) {
ex.printStackTrace();
}
}
public JTBPathSelect(FrameToJTBInterface frame) {
this();
this.frame = frame;
}
public static void main(String[] args) {
JTBPathSelect jtbpathselect = new JTBPathSelect();
}
private void jbInit() throws Exception {
this.setLayout(flowLayout1);
this.add(selectXianShi);
this.add(pathArray);
this.add(pathWanbi);
this.add(pathBubao);
this.add(pathOutput);
this.initText();
}
public String[] getPath(){
String[] path = new String[4];
path[0] = this.pathArray.getPath();
path[1] = this.pathWanbi.getPath();
path[2] = this.pathBubao.getPath();
path[3] = this.pathOutput.getPath();
return path;
}
public String getShi(){
return selectXianShi.getShi();
}
public String getXian(){
return selectXianShi.getXian();
}
public String toString(){
frame.repaintTable();
return super.toString();
}
/**
* 设置默认的路径
*/
public void setDefaultPath(){
pathArray.setPath("F:\\out\\怀远县\\array\\");
pathWanbi.setPath("F:\\out\\怀远县\\整理完毕\\");
pathBubao.setPath("F:\\out\\怀远县\\补报表格\\");
pathOutput.setPath("F:\\out\\怀远县\\部接口\\");
}
private void initText(){
this.pathArray.setLabelText("选择[array]:");
this.pathWanbi.setLabelText("选择[整理完毕]:");
this.pathBubao.setLabelText("选择[补报表格]:");
this.pathOutput.setLabelText("选择[输出路径]:");
}
private FlowLayout flowLayout1 = new FlowLayout();
/**
* array
*/
private PathSelect pathArray = new PathSelect(this);
/**
* 整理完毕
*/
private PathSelect pathWanbi = new PathSelect(this);
/**
* 补报表格
*/
private PathSelect pathBubao = new PathSelect(this);
/**
* 输出路径
*/
private PathSelect pathOutput = new PathSelect(this);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -