Subversion Repositories svn.mios

Rev

Rev 250 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 250 Rev 628
Line 57... Line 57...
57
        ButtonModel model = b.getModel();
57
        ButtonModel model = b.getModel();
58
        c.setBorder(null);
58
        c.setBorder(null);
59
        c.setOpaque(false);
59
        c.setOpaque(false);
60
       
60
61
        switch(realValue) {
61
        switch (realValue) {
-
 
62
        case 0:
62
            case 0:icon0.paintIcon(c, g, (c.getWidth() - icon0.getIconWidth()) / 2, (c.getHeight() - icon0.getIconHeight()) / 2);break;
63
            icon0.paintIcon(c, g, (c.getWidth() - icon0.getIconWidth()) / 2, (c
-
 
64
                    .getHeight() - icon0.getIconHeight()) / 2);
-
 
65
            break;
-
 
66
        case 1:
63
            case 1:icon1.paintIcon(c, g, (c.getWidth() - icon1.getIconWidth()) / 2, (c.getHeight() - icon1.getIconHeight()) / 2);break;
67
            icon1.paintIcon(c, g, (c.getWidth() - icon1.getIconWidth()) / 2, (c
-
 
68
                    .getHeight() - icon1.getIconHeight()) / 2);
-
 
69
            break;
-
 
70
        case 2:
64
            case 2:icon2.paintIcon(c, g, (c.getWidth() - icon2.getIconWidth()) / 2, (c.getHeight() - icon2.getIconHeight()) / 2);break;
71
            icon2.paintIcon(c, g, (c.getWidth() - icon2.getIconWidth()) / 2, (c
-
 
72
                    .getHeight() - icon2.getIconHeight()) / 2);
-
 
73
            break;
-
 
74
        case 3:
65
            case 3:icon3.paintIcon(c, g, (c.getWidth() - icon3.getIconWidth()) / 2, (c.getHeight() - icon3.getIconHeight()) / 2);break;
75
            icon3.paintIcon(c, g, (c.getWidth() - icon3.getIconWidth()) / 2, (c
-
 
76
                    .getHeight() - icon3.getIconHeight()) / 2);
-
 
77
            break;
66
        }  
78
        }
67
79
68
        if (b.hasFocus()) {
80
        if (b.hasFocus()) {
69
            paintFocus(g, b);
81
            paintFocus(g, b);
70
        }
82
        }