Changeset 9081 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2015-12-02T21:41:41+01:00 (9 years ago)
Author:
wiktorn
Message:

FIx missing scrollbar on WMTS layer selection list. Closes #12151.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/imagery/WMTSTileSource.java

    r9069 r9081  
    44import static org.openstreetmap.josm.tools.I18n.tr;
    55
    6 import java.awt.Dimension;
    76import java.awt.GridBagLayout;
    87import java.awt.Point;
     
    2524
    2625import javax.swing.JPanel;
     26import javax.swing.JScrollPane;
    2727import javax.swing.JTable;
    2828import javax.swing.ListSelectionModel;
     
    200200                        }
    201201                    });
    202             this.list.setPreferredSize(new Dimension(400, 400));
    203202            this.list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    204203            this.list.setRowSelectionAllowed(true);
    205204            this.list.setColumnSelectionAllowed(false);
    206205            JPanel panel = new JPanel(new GridBagLayout());
    207             panel.add(this.list, GBC.eol().fill());
     206            panel.add(new JScrollPane(this.list), GBC.eol().fill());
    208207            setContent(panel);
    209208        }
Note: See TracChangeset for help on using the changeset viewer.