diff --git a/src/org/openstreetmap/josm/gui/MapFrame.java b/src/org/openstreetmap/josm/gui/MapFrame.java
index 16621b70e..06b94a4e3 100644
a
|
b
|
|
7 | 7 | import java.awt.Component; |
8 | 8 | import java.awt.Container; |
9 | 9 | import java.awt.Dimension; |
10 | | import java.awt.Font; |
11 | 10 | import java.awt.GridBagLayout; |
12 | 11 | import java.awt.Rectangle; |
13 | 12 | import java.awt.event.ActionEvent; |
… |
… |
|
25 | 24 | import javax.swing.BorderFactory; |
26 | 25 | import javax.swing.BoxLayout; |
27 | 26 | import javax.swing.ButtonGroup; |
28 | | import javax.swing.ImageIcon; |
29 | 27 | import javax.swing.JButton; |
30 | 28 | import javax.swing.JCheckBoxMenuItem; |
31 | 29 | import javax.swing.JComponent; |
… |
… |
|
35 | 33 | import javax.swing.JToggleButton; |
36 | 34 | import javax.swing.JToolBar; |
37 | 35 | import javax.swing.KeyStroke; |
| 36 | import javax.swing.SwingConstants; |
38 | 37 | import javax.swing.border.Border; |
39 | 38 | import javax.swing.event.PopupMenuEvent; |
40 | 39 | import javax.swing.event.PopupMenuListener; |
| 40 | import javax.swing.plaf.basic.BasicArrowButton; |
41 | 41 | import javax.swing.plaf.basic.BasicSplitPaneDivider; |
42 | 42 | import javax.swing.plaf.basic.BasicSplitPaneUI; |
43 | 43 | |
… |
… |
|
137 | 137 | |
138 | 138 | private final ListAllButtonsAction listAllDialogsAction = new ListAllButtonsAction(allDialogButtons); |
139 | 139 | private final ListAllButtonsAction listAllMapModesAction = new ListAllButtonsAction(allMapModeButtons); |
140 | | private final JButton listAllToggleDialogsButton = new JButton(listAllDialogsAction); |
141 | | private final JButton listAllMapModesButton = new JButton(listAllMapModesAction); |
| 140 | private final JButton listAllToggleDialogsButton = new BasicArrowButton(SwingConstants.EAST); |
| 141 | private final JButton listAllMapModesButton = new BasicArrowButton(SwingConstants.EAST); |
142 | 142 | |
143 | 143 | { |
144 | 144 | listAllDialogsAction.setButton(listAllToggleDialogsButton); |
… |
… |
public void fillPanel(Container panel) {
|
500 | 500 | toolBarActions.setBorder(null); |
501 | 501 | toolBarActions.setInheritsPopupMenu(true); |
502 | 502 | sideToolBar.add(toolBarActions); |
503 | | listAllMapModesButton.setAlignmentX(0.5f); |
504 | | listAllMapModesButton.setBorder(null); |
505 | | listAllMapModesButton.setFont(listAllMapModesButton.getFont().deriveFont(Font.PLAIN)); |
506 | | listAllMapModesButton.setInheritsPopupMenu(true); |
507 | 503 | sideToolBar.add(listAllMapModesButton); |
508 | 504 | } |
509 | 505 | |
… |
… |
public void fillPanel(Container panel) {
|
516 | 512 | toolBarToggle.setBorder(null); |
517 | 513 | toolBarToggle.setInheritsPopupMenu(true); |
518 | 514 | sideToolBar.add(toolBarToggle); |
519 | | listAllToggleDialogsButton.setAlignmentX(0.5f); |
520 | | listAllToggleDialogsButton.setBorder(null); |
521 | | listAllToggleDialogsButton.setFont(listAllToggleDialogsButton.getFont().deriveFont(Font.PLAIN)); |
522 | | listAllToggleDialogsButton.setInheritsPopupMenu(true); |
523 | 515 | sideToolBar.add(listAllToggleDialogsButton); |
524 | 516 | } |
525 | 517 | |
… |
… |
public void actionPerformed(ActionEvent e) {
|
642 | 634 | |
643 | 635 | public void setButton(JButton button) { |
644 | 636 | this.button = button; |
645 | | final ImageIcon icon = ImageProvider.get("audio-fwd"); |
646 | | putValue(SMALL_ICON, icon); |
647 | | button.setPreferredSize(new Dimension(icon.getIconWidth(), icon.getIconHeight() + 64)); |
| 637 | button.setPreferredSize(ImageProvider.ImageSizes.LARGEICON.getImageDimension()); |
| 638 | button.setMaximumSize(ImageProvider.ImageSizes.LARGEICON.getImageDimension()); |
| 639 | button.setAction(this); |
| 640 | button.setAlignmentX(0.5f); |
| 641 | button.setInheritsPopupMenu(true); |
648 | 642 | } |
649 | 643 | |
650 | 644 | @Override |