mirror of
https://github.com/nasa/trick.git
synced 2025-02-20 17:22:52 +00:00
remove Set Units field from TV closes #1014
This commit is contained in:
parent
3615fa47b5
commit
663f9937be
@ -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);
|
||||
}};
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user