remove Set Units field from TV closes #1014

This commit is contained in:
Scott Fennell 2020-07-02 14:05:10 -05:00
parent 3615fa47b5
commit 663f9937be

View File

@ -1727,34 +1727,6 @@ public class TVApplication extends RunTimeTrickApplication implements VariableLi
}
}
}), constraints);
constraints = new GridBagConstraints() {{
gridy = 1;
fill = BOTH;
}};
add(new JXLabel(" Set Units: "), constraints);
unitField = new JXTextField() {{
setAction(new AbstractAction() {
{
putValue(SHORT_DESCRIPTION, "Manually change units for all selected rows");
}
public void actionPerformed(ActionEvent actionEvent) {
try {
variableTable.setValueAt(getText(), 0, 2);
}
catch (IndexOutOfBoundsException indexOutOfBoundsException) {
JOptionPane.showMessageDialog(getMainFrame(),
"No variables selected", "No variables selected",
JOptionPane.ERROR_MESSAGE);
}
}
});
}};
constraints.weightx = 1;
add(unitField, constraints);
}};