- Timestamp:
- 2021-03-20T12:37:49+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/corrector/TagCorrector.java
r17241 r17597 28 28 import org.openstreetmap.josm.data.osm.DefaultNameFormatter; 29 29 import org.openstreetmap.josm.data.osm.OsmPrimitive; 30 import org.openstreetmap.josm.gui.ExtendedDialog; 30 31 import org.openstreetmap.josm.gui.MainApplication; 31 32 import org.openstreetmap.josm.gui.correction.RoleCorrectionTable; … … 115 116 tagCorrections); 116 117 final JScrollPane scrollPane = new JScrollPane(table); 117 p.add(scrollPane, GBC.eop().fill(GBC. HORIZONTAL));118 p.add(scrollPane, GBC.eop().fill(GBC.BOTH)); 118 119 119 120 tagTableMap.put(primitive, table); … … 141 142 final RoleCorrectionTable table = new RoleCorrectionTable(roleCorrections); 142 143 final JScrollPane scrollPane = new JScrollPane(table); 143 p.add(scrollPane, GBC.eop().fill(GBC. HORIZONTAL));144 p.add(scrollPane, GBC.eop().fill(GBC.BOTH)); 144 145 primitiveLabel.setLabelFor(table); 145 146 … … 147 148 } 148 149 149 int answer = JOptionPane.showOptionDialog(150 ExtendedDialog dialog = new ExtendedDialog( 150 151 MainApplication.getMainFrame(), 151 p,152 152 tr("Automatic tag correction"), 153 JOptionPane.YES_NO_CANCEL_OPTION, 154 JOptionPane.PLAIN_MESSAGE, 155 null, 156 APPLICATION_OPTIONS, 157 APPLICATION_OPTIONS[0] 153 APPLICATION_OPTIONS 158 154 ); 155 dialog.setContent(p, false); 156 dialog.setButtonIcons("dialogs/edit", "dialogs/next", "cancel"); 157 dialog.showDialog(); 158 int answer = dialog.getValue(); 159 159 160 160 if (answer == JOptionPane.YES_OPTION) {
Note:
See TracChangeset
for help on using the changeset viewer.