📄 table.java
字号:
package net.aetherial.gis.jiaotongbu.outputJTB.txtOutput.view.scan;
import javax.swing.JTable;
import javax.swing.JComboBox;
import javax.swing.table.TableColumn;
import javax.swing.DefaultCellEditor;
/**
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2004</p>
*
* <p>Company: </p>
*
* @author not attributable
* @version 1.0
*/
public class Table extends JTable{
private TableModel tm = null;
public Table(TableModel tm) {
super(tm);
this.tm = tm;
//this.test();
}
public Table() {
}
public String getPathArray(){
return (String)tm.getValueAt(0,1);
}
public String getPathWanbi(){
return (String)tm.getValueAt(1,1);
}
public String[] getPathBubao(){
String[] path = new String[7];
path[0] = (String) tm.getValueAt(2, 1);
path[1] = (String) tm.getValueAt(3, 1);
path[2] = (String) tm.getValueAt(4, 1);
path[3] = (String) tm.getValueAt(5, 1);
path[4] = (String) tm.getValueAt(6, 1);
path[5] = (String) tm.getValueAt(7, 1);
path[6] = (String) tm.getValueAt(8, 1);
return path;
}
public String getPathOut(){
return (String)tm.getValueAt(9,1);
}
public static void main(String[] args) {
for (int i = 0; i < 6; i++) {
System.out.println(" path[" + i + "] = (String)tm.getValueAt(" + (i +2) + ",1);");
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -