Changeset 18972 in josm for trunk/src/org/openstreetmap/josm/gui/preferences/ToolbarPreferences.java
- Timestamp:
- 2024-02-09T15:26:06+01:00 (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/ToolbarPreferences.java
r18871 r18972 8 8 import java.awt.Dimension; 9 9 import java.awt.GraphicsEnvironment; 10 import java.awt.GridBagConstraints; 10 11 import java.awt.GridBagLayout; 11 12 import java.awt.GridLayout; … … 240 241 } 241 242 243 /** 244 * Parse actions from a name 245 */ 242 246 public static class ActionParser { 243 247 private final Map<String, Action> actions; … … 920 924 final JPanel left = new JPanel(new GridBagLayout()); 921 925 left.add(new JLabel(tr("Toolbar")), GBC.eol()); 922 left.add(new JScrollPane(selectedList), GBC.std().fill(G BC.BOTH));926 left.add(new JScrollPane(selectedList), GBC.std().fill(GridBagConstraints.BOTH)); 923 927 924 928 final JPanel right = new JPanel(new GridBagLayout()); 925 929 right.add(new JLabel(tr("Available")), GBC.eol()); 926 right.add(new JScrollPane(actionsTree), GBC.eol().fill(G BC.BOTH));930 right.add(new JScrollPane(actionsTree), GBC.eol().fill(GridBagConstraints.BOTH)); 927 931 928 932 final JPanel buttons = new JPanel(new GridLayout(6, 1)); … … 978 982 actionParametersTable.getColumnModel().getColumn(0).setHeaderValue(tr("Parameter name")); 979 983 actionParametersTable.getColumnModel().getColumn(1).setHeaderValue(tr("Parameter value")); 980 actionParametersPanel.add(actionParametersTable.getTableHeader(), GBC.eol().fill(G BC.HORIZONTAL));981 actionParametersPanel.add(actionParametersTable, GBC.eol().fill(G BC.BOTH).insets(0, 0, 0, 10));984 actionParametersPanel.add(actionParametersTable.getTableHeader(), GBC.eol().fill(GridBagConstraints.HORIZONTAL)); 985 actionParametersPanel.add(actionParametersTable, GBC.eol().fill(GridBagConstraints.BOTH).insets(0, 0, 0, 10)); 982 986 actionParametersPanel.setVisible(false); 983 987 984 988 JPanel panel = gui.createPreferenceTab(this); 985 panel.add(p, GBC.eol().fill(G BC.BOTH));986 panel.add(actionParametersPanel, GBC.eol().fill(G BC.HORIZONTAL));989 panel.add(p, GBC.eol().fill(GridBagConstraints.BOTH)); 990 panel.add(actionParametersPanel, GBC.eol().fill(GridBagConstraints.HORIZONTAL)); 987 991 selected.removeAllElements(); 988 992 for (ActionDefinition actionDefinition: getDefinedActions()) {
Note:
See TracChangeset
for help on using the changeset viewer.