Changeset 3036 in josm for trunk


Ignore:
Timestamp:
2010-02-23T19:24:23+01:00 (10 years ago)
Author:
mjulius
Message:

fixes #4562 - 'Parent Relations' tab in 'Edit relation' dialog has no scrollbars.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/ReferringRelationsBrowser.java

    r2512 r3036  
    1212import javax.swing.AbstractAction;
    1313import javax.swing.JCheckBox;
    14 import javax.swing.JLabel;
    1514import javax.swing.JList;
    1615import javax.swing.JPanel;
     16import javax.swing.JScrollPane;
    1717import javax.swing.ListSelectionModel;
    1818import javax.swing.event.ListDataEvent;
     
    5151        referrers = new JList(model);
    5252        referrers.setCellRenderer(new OsmPrimitivRenderer());
    53         add(referrers, BorderLayout.CENTER);
     53        add(new JScrollPane(referrers), BorderLayout.CENTER);
    5454        referrers.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    5555        referrers.addMouseListener(new DblClickMouseAdapter());
     
    6161        referrers.getModel().addListDataListener(reloadAction);
    6262        pnl.add(new SideButton(reloadAction));
    63         pnl.add(new JLabel(tr("including immediate children of parent relations")));
    64         pnl.add(cbReadFull = new JCheckBox());
     63        pnl.add(cbReadFull = new JCheckBox(tr("including immediate children of parent relations")));
    6564
    6665        editAction = new EditAction();
Note: See TracChangeset for help on using the changeset viewer.