added username to generate contact info on help
This commit is contained in:
@@ -920,7 +920,7 @@ public class TestingList extends Panel {
|
||||
*/
|
||||
public void openNewTestEditor(String type){
|
||||
try {
|
||||
JDialog dlg = new JDialog(getView(), "New Test", true);
|
||||
JDialog dlg = new JDialog(getView(), "New "+ type, true);
|
||||
//create a class to visualise the details panel
|
||||
Class testingListDetailsClass = getController().getClassByName("NewTest");
|
||||
JPanel detailsPanel = (JPanel) testingListDetailsClass.getConstructor(new Class[]{String.class}).newInstance(new Object[]{type});
|
||||
@@ -991,12 +991,17 @@ public class TestingList extends Panel {
|
||||
private void moveUp() {
|
||||
DefaultTableModel model = (DefaultTableModel) jTable1.getModel();
|
||||
int[] rows = jTable1.getSelectedRows();
|
||||
if (rows[0] - 1 >= 0) {
|
||||
jTable1.setAutoCreateRowSorter(false);
|
||||
model.moveRow(rows[0], rows[rows.length - 1], rows[0] - 1);
|
||||
jTable1.setAutoCreateRowSorter(true);
|
||||
jTable1.setRowSelectionInterval(rows[0] - 1, rows[rows.length - 1] - 1);
|
||||
try{
|
||||
if (rows[0] - 1 >= 0) {
|
||||
jTable1.setAutoCreateRowSorter(false);
|
||||
model.moveRow(rows[0], rows[rows.length - 1], rows[0] - 1);
|
||||
jTable1.setAutoCreateRowSorter(true);
|
||||
jTable1.setRowSelectionInterval(rows[0] - 1, rows[rows.length - 1] - 1);
|
||||
}
|
||||
}
|
||||
catch(Exception ex){
|
||||
//fail silently
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1005,11 +1010,16 @@ public class TestingList extends Panel {
|
||||
private void moveDown() {
|
||||
DefaultTableModel model = (DefaultTableModel) jTable1.getModel();
|
||||
int[] rows = jTable1.getSelectedRows();
|
||||
if (rows[rows.length - 1] < jTable1.getRowCount()) {
|
||||
jTable1.setAutoCreateRowSorter(false);
|
||||
model.moveRow(rows[0], rows[rows.length - 1], rows[0] + 1);
|
||||
jTable1.setAutoCreateRowSorter(true);
|
||||
jTable1.setRowSelectionInterval(rows[0] + 1, rows[rows.length - 1] + 1);
|
||||
try{
|
||||
if (rows[rows.length - 1] < jTable1.getRowCount()) {
|
||||
jTable1.setAutoCreateRowSorter(false);
|
||||
model.moveRow(rows[0], rows[rows.length - 1], rows[0] + 1);
|
||||
jTable1.setAutoCreateRowSorter(true);
|
||||
jTable1.setRowSelectionInterval(rows[0] + 1, rows[rows.length - 1] + 1);
|
||||
}
|
||||
}
|
||||
catch(Exception ex){
|
||||
//fail silently
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user