~ubuntu-branches/ubuntu/vivid/drmips/vivid-backports

« back to all changes in this revision

Viewing changes to src/pc/DrMIPS/src/com/jtattoo/plaf/texture/TextureCheckBoxUI.java

  • Committer: Package Import Robot
  • Author(s): Bruno Nova
  • Date: 2014-09-27 12:24:17 UTC
  • Revision ID: package-import@ubuntu.com-20140927122417-2gadkwt9k0u7j4zu
Tags: upstream-1.2.3
Import upstream version 1.2.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
* Copyright (c) 2002 and later by MH Software-Entwicklung. All Rights Reserved.
 
3
*  
 
4
* JTattoo is multiple licensed. If your are an open source developer you can use
 
5
* it under the terms and conditions of the GNU General Public License version 2.0
 
6
* or later as published by the Free Software Foundation.
 
7
*  
 
8
* see: gpl-2.0.txt
 
9
 
10
* If you pay for a license you will become a registered user who could use the
 
11
* software under the terms and conditions of the GNU Lesser General Public License
 
12
* version 2.0 or later with classpath exception as published by the Free Software
 
13
* Foundation.
 
14
 
15
* see: lgpl-2.0.txt
 
16
* see: classpath-exception.txt
 
17
 
18
* Registered users could also use JTattoo under the terms and conditions of the 
 
19
* Apache License, Version 2.0 as published by the Apache Software Foundation.
 
20
*  
 
21
* see: APACHE-LICENSE-2.0.txt
 
22
*/
 
23
 
 
24
package com.jtattoo.plaf.texture;
 
25
 
 
26
import javax.swing.*;
 
27
import javax.swing.plaf.ComponentUI;
 
28
 
 
29
/**
 
30
 * @author Michael Hagen
 
31
 */
 
32
public class TextureCheckBoxUI extends TextureRadioButtonUI {
 
33
 
 
34
    private static TextureCheckBoxUI checkBoxUI = null;
 
35
 
 
36
    public static ComponentUI createUI(JComponent b) {
 
37
        if (checkBoxUI == null) {
 
38
            checkBoxUI = new TextureCheckBoxUI();
 
39
        }
 
40
        return checkBoxUI;
 
41
    }
 
42
 
 
43
    public void installDefaults(AbstractButton b) {
 
44
        super.installDefaults(b);
 
45
        icon = UIManager.getIcon("CheckBox.icon");
 
46
    }
 
47
}