Ticket #1607: PreferenceDialog.diff

File PreferenceDialog.diff, 1.5 KB (added by Henry Loenwind, 16 years ago)
  • src/org/openstreetmap/josm/gui/preferences/PreferenceDialog.java

     
    4141        public final JPanel map = createPreferenceTab("map", I18n.tr("Map Settings"), I18n.tr("Settings for the map projection and data interpretation."));
    4242        public final JPanel audio = createPreferenceTab("audio", I18n.tr("Audio Settings"), I18n.tr("Settings for the audio player and audio markers."));
    4343
     44  public final javax.swing.JTabbedPane displaycontent = new javax.swing.JTabbedPane();
     45
    4446        /**
    4547         * Construct a JPanel for the preference settings. Layout is GridBagLayout
    4648         * and a centered title label and the description are added.
     
    8789         */
    8890        public PreferenceDialog() {
    8991                super(JTabbedPane.LEFT, JTabbedPane.SCROLL_TAB_LAYOUT);
     92                display.add(displaycontent, GBC.eol().fill(GBC.BOTH));
    9093                for (Iterator<PreferenceSetting> it = settings.iterator(); it.hasNext();) {
    9194                        try {
    9295                    it.next().addGui(this);
     
    98101
    99102        static {
    100103                // order is important!
    101                 settings.add(new LafPreference());
    102104                settings.add(new DrawingPreference());
    103105                settings.add(new ColorPreference());
     106                settings.add(new LafPreference());
    104107                settings.add(new MapPaintPreference());
    105108                settings.add(new ServerAccessPreference());
    106109                settings.add(new FilePreferences());