equal
deleted
inserted
replaced
223 |
223 |
224 // Paint the Icon |
224 // Paint the Icon |
225 if(b.getIcon() != null) { |
225 if(b.getIcon() != null) { |
226 Icon icon; |
226 Icon icon; |
227 if(!model.isEnabled()) { |
227 if(!model.isEnabled()) { |
228 icon = (Icon) b.getDisabledIcon(); |
228 icon = b.getDisabledIcon(); |
229 } else if(model.isPressed() && model.isArmed()) { |
229 } else if(model.isPressed() && model.isArmed()) { |
230 icon = (Icon) b.getPressedIcon(); |
230 icon = b.getPressedIcon(); |
231 if(icon == null) { |
231 if(icon == null) { |
232 // Use default icon |
232 // Use default icon |
233 icon = (Icon) b.getIcon(); |
233 icon = b.getIcon(); |
234 } |
234 } |
235 } else { |
235 } else { |
236 icon = (Icon) b.getIcon(); |
236 icon = b.getIcon(); |
237 } |
237 } |
238 |
238 |
239 if (icon!=null) { |
239 if (icon!=null) { |
240 icon.paintIcon(c, g, iconRect.x, iconRect.y); |
240 icon.paintIcon(c, g, iconRect.x, iconRect.y); |
241 } |
241 } |