home *** CD-ROM | disk | FTP | other *** search
- package com.sun.java.swing.plaf.metal;
-
- import com.sun.java.swing.Icon;
- import com.sun.java.swing.JComponent;
- import com.sun.java.swing.UIManager;
- import com.sun.java.swing.plaf.ComponentUI;
- import com.sun.java.swing.plaf.ToggleButtonUI;
- import java.awt.Dimension;
- import java.awt.Graphics;
- import java.awt.Rectangle;
-
- public class MetalCheckBoxUI extends MetalRadioButtonUI {
- protected static ToggleButtonUI checkboxUI;
-
- public static ComponentUI createUI(JComponent var0) {
- if (checkboxUI == null) {
- checkboxUI = new MetalCheckBoxUI();
- }
-
- return checkboxUI;
- }
-
- public Icon createIcon() {
- return UIManager.getIcon("CheckBox.icon");
- }
-
- protected void paintFocus(Graphics var1, Rectangle var2, Dimension var3) {
- var1.setColor(UIManager.getColor("CheckBox.focus"));
- var1.drawRect(var2.x, var2.y - 1, var2.width + 1, var2.height + 1);
- }
- }
-