Package com.sun.java.swing.plaf.windows

Examples of com.sun.java.swing.plaf.windows.WindowsCheckBoxUI


    public static JCheckBox newToggleField() {
        final JCheckBox result = new ToggleField();

        // CraigM:29/04/2008 -  If the check box is not enabled but is focusable, don't let the
        //             toggle field disabled text be hard to read.
        result.setUI(new WindowsCheckBoxUI() {
          @Override
          protected void paintText(Graphics g, AbstractButton b, Rectangle textRect, String text) {
            if (UIManager.getLookAndFeel() instanceof Win32LookAndFeel && result.isEnabled() == false && result.isFocusable()) {
              String version = System.getProperty("java.version", ".");
View Full Code Here


    public static JCheckBox newToggleField() {
        final JCheckBox result = new ToggleField();

        // CraigM:29/04/2008 -  If the check box is not enabled but is focusable, don't let the
        //             toggle field disabled text be hard to read.
        result.setUI(new WindowsCheckBoxUI() {
          @Override
          protected void paintText(Graphics g, AbstractButton b, Rectangle textRect, String text) {
            if (UIManager.getLookAndFeel() instanceof Win32LookAndFeel && result.isEnabled() == false && result.isFocusable()) {
              String version = System.getProperty("java.version", ".");
View Full Code Here

    public static JCheckBox newToggleField() {
        final JCheckBox result = new ToggleField();

        // CraigM:29/04/2008 -  If the check box is not enabled but is focusable, don't let the
        //             toggle field disabled text be hard to read.
        result.setUI(new WindowsCheckBoxUI() {
          @Override
          protected void paintText(Graphics g, AbstractButton b, Rectangle textRect, String text) {
            if (UIManager.getLookAndFeel() instanceof Win32LookAndFeel && result.isEnabled() == false && result.isFocusable()) {
              String version = System.getProperty("java.version", ".");
View Full Code Here

TOP

Related Classes of com.sun.java.swing.plaf.windows.WindowsCheckBoxUI

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.