is Gtk - Java Native OS

Java examples for Native OS:OS

Description

is Gtk

Demo Code

/*******************************************************************************
 * Copyright (c) 2011 Zeljko Zirikovic.//  w  ww  .j  a v  a2  s  .  c  o m
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GPL which 
 * accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/gpl.html
 ******************************************************************************/
//package com.java2s;

import javax.swing.UIManager;

public class Main {
    public static boolean isGtk() {
        return UIManager.getLookAndFeel().getClass().getName()
                .contains("GTK");
    }
}

Related Tutorials