Ignore:
Timestamp:
2010-03-25T00:01:21+01:00 (15 years ago)
Author:
pieren
Message:

added a scroll bar in preferences

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastrePreferenceSetting.java

    r20247 r20659  
    44import static org.openstreetmap.josm.tools.I18n.tr;
    55
     6import java.awt.GridBagLayout;
    67import java.awt.event.ActionEvent;
    78import java.awt.event.ActionListener;
     
    9596                + "http://www.cadastre.gouv.fr/scpc/html/CU_01_ConditionsGenerales_fr.html</a> <BR>"
    9697                + "before any upload of data created by this plugin.");
    97         JPanel cadastrewms = gui.createPreferenceTab("cadastrewms.gif", I18n.tr("French cadastre WMS"), description);
     98        JPanel cadastrewmsMast = gui.createPreferenceTab("cadastrewms.gif", I18n.tr("French cadastre WMS"), description);
     99       
     100        JPanel cadastrewms = new JPanel(new GridBagLayout());
     101        cadastrewms.setBorder(BorderFactory.createEmptyBorder(0,0,0,0));
    98102
    99103        // option to automatically set the source tag when uploading
     
    326330        cadastrewms.add(autoFirstLayer, GBC.eop().insets(0, 0, 0, 0));
    327331        cadastrewms.add(Box.createVerticalGlue(), GBC.eol().fill(GBC.VERTICAL));
     332//        JTabbedPane cadastrecontent = new JTabbedPane();
     333//        cadastrecontent.add(cadastrewms);
     334        JScrollPane scrollpane = new JScrollPane(cadastrewms);
     335        scrollpane.setBorder(BorderFactory.createEmptyBorder( 0, 0, 0, 0 ));
     336        cadastrewmsMast.add(scrollpane, GBC.eol().fill(GBC.BOTH));
    328337
    329338    }
Note: See TracChangeset for help on using the changeset viewer.