Ignore:
Timestamp:
2014-10-12T12:37:13+02:00 (12 years ago)
Author:
donvip
Message:

[josm_merge_overlap] fix #josm10626 - fix ClassCastException

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/merge-overlap/src/mergeoverlap/hack/MyRelationMemberConflictResolverTable.java

    r30713 r30714  
    66
    77import javax.swing.AbstractAction;
    8 import javax.swing.JComboBox;
    98import javax.swing.JComponent;
    109import javax.swing.JTable;
     
    1413import org.openstreetmap.josm.gui.conflict.tags.MultiValueCellEditor;
    1514import org.openstreetmap.josm.gui.conflict.tags.RelationMemberConflictResolverColumnModel;
     15import org.openstreetmap.josm.gui.widgets.JosmComboBox;
    1616
    1717public class MyRelationMemberConflictResolverTable extends JTable implements MultiValueCellEditor.NavigationListener {
     
    2525    }
    2626
    27     protected void build() {
     27    protected final void build() {
    2828        setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS);
    2929        setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
     
    4242        getActionMap().put("selectPreviousColumnCell", selectPreviousColumnCellAction);
    4343
    44         setRowHeight((int)new JComboBox<>().getPreferredSize().getHeight());
     44        setRowHeight((int)new JosmComboBox<String>().getPreferredSize().getHeight());
    4545    }
    4646
     
    4949     * pressing TAB or ENTER. The action alters the standard navigation path from cell to cell: <ul>
    5050     * <li>it jumps over cells in the first column</li> <li>it automatically add a new empty row
    51      * when the user leaves the last cell in the table</li> <ul>
     51     * when the user leaves the last cell in the table</li></ul>
    5252     *
    5353     *
Note: See TracChangeset for help on using the changeset viewer.