- Timestamp:
- 2020-10-18T12:03:24+02:00 (4 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/preferences
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/PreferenceDialog.java
r17097 r17228 55 55 super(GuiHelper.getFrameForComponent(parent), tr("Preferences"), ModalityType.DOCUMENT_MODAL); 56 56 build(); 57 this.setMinimumSize(new Dimension( 600, 350));57 this.setMinimumSize(new Dimension(800, 600)); 58 58 // set the maximum width to the current screen. If the dialog is opened on a 59 59 // smaller screen than before, this will reset the stored preference. -
trunk/src/org/openstreetmap/josm/gui/preferences/PreferenceTabbedPane.java
r17201 r17228 493 493 for (PreferenceTab tab : tabs) { 494 494 if (tab.getTabPreferenceSetting().equals(tps)) { 495 insertGUITabsForSetting(icon, tps, getTabCount());495 insertGUITabsForSetting(icon, tps, tab.getComponent(), getTabCount()); 496 496 } 497 497 } … … 502 502 for (PreferenceTab tab : tabs) { 503 503 if (tab.getTabPreferenceSetting().equals(tps)) { 504 insertTab(tps.getTitle(), icon, tab.getComponent(), tps.getTooltip(), position++); 504 insertGUITabsForSetting(icon, tps, tab.getComponent(), position); 505 position++; 505 506 } 506 507 } 507 508 return position - 1; 509 } 510 511 private void insertGUITabsForSetting(Icon icon, TabPreferenceSetting tps, final Component component, int position) { 512 String title = "<html><div style='width:150px'>" + tps.getTitle(); 513 insertTab(title, icon, component, tps.getTooltip(), position); 508 514 } 509 515 … … 525 531 } else { 526 532 // If it has not been initialized, create an empty tab with only icon and tooltip 527 addTab(tps.getTitle(), icon, new PreferencePanel(tps), tps.getTooltip());533 insertGUITabsForSetting(icon, tps, new PreferencePanel(tps), getTabCount()); 528 534 } 529 535 }
Note:
See TracChangeset
for help on using the changeset viewer.