All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jidesoft.plaf.vsnet.VsnetWindowsLookAndFeel Maven / Gradle / Ivy

/*
 * @(#)VsnetLookAndFeel.java
 *
 * Copyright 2002 JIDE Software Inc. All rights reserved.
 */
package com.jidesoft.plaf.vsnet;

import com.jidesoft.utils.SystemInfo;
import com.sun.java.swing.plaf.windows.WindowsLookAndFeel;

import javax.swing.*;

/**
 * WindowsLookAndFeel with Visual Studio .NET extension
 *
 * @deprecated Due to the change in LookAndFeelFactory, this class is no longer needed.
 *             The best way to set any L&F is to use UIManager.setLookAndFeel() as usual. then call
 *             installJideExtension() or installJideExtension(int style) to add UIDefaults needed by JIDE products.
 */
public class VsnetWindowsLookAndFeel extends WindowsLookAndFeel {
    @Override
    public String getName() {
        return "Visual Studio .NET";
    }

    @Override
    public String getDescription() {
        return "The Microsoft Visual Studio .NET Look And Feel";
    }

    @Override
    public String getID() {
        return "Visual Studio .NET";
    }

    @Override
    public boolean isSupportedLookAndFeel() {
        return isNativeLookAndFeel();
    }

    @Override
    public boolean isNativeLookAndFeel() {
        return SystemInfo.isWindows();
    }

    @Override
    protected void initClassDefaults(UIDefaults table) {
        super.initClassDefaults(table);
        VsnetWindowsUtils.initClassDefaultsWithMenu(table);
    }

    @Override
    protected void initComponentDefaults(UIDefaults table) {
        super.initComponentDefaults(table);
        VsnetWindowsUtils.initComponentDefaultsWithMenu(table);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy