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


Ignore:
Timestamp:
2009-10-03T14:13:17+02:00 (15 years ago)
Author:
stoecker
Message:

fixed #3635 - title in side dialogs not refreshed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/ToggleDialog.java

    r2224 r2232  
    5252    private DialogsPanel dialogsPanel;
    5353
    54     private  TitleBar titleBar;
    55     private String title;
     54    private TitleBar titleBar;
    5655
    5756    /**
     
    259258    private class TitleBar extends JPanel {
    260259        final private JLabel lblTitle;
     260        final private JComponent lblTitle_weak;
    261261
    262262        public TitleBar(String toggleDialogName, String iconName) {
     
    277277
    278278            // Cannot add the label directly since it would displace other elements on resize
    279             JComponent lblTitle_weak = new JComponent() {
     279            lblTitle_weak = new JComponent() {
    280280                @Override
    281281                public void paintComponent(Graphics g) {
     
    336336        public void setTitle(String title) {
    337337            lblTitle.setText(title);
     338            lblTitle_weak.repaint();
    338339        }
    339340
Note: See TracChangeset for help on using the changeset viewer.