test.NonEDTTest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Quaqua Show documentation
Show all versions of Quaqua Show documentation
A Mavenisation of the Quaqua Mac OSX Swing Look and Feel (Java library)
Quaqua Look and Feel (C) 2003-2010, Werner Randelshofer.
Mavenisation by Matt Gumbley, DevZendo.org - for problems with
Mavenisation, see Matt; for issues with Quaqua, see the Quaqua home page.
For full license details, see http://randelshofer.ch/quaqua/license.html
The newest version!
/**
* @(#)NonEDTTest.java 1.0 May 1, 2008
*
* Copyright (c) 2008 Werner Randelshofer, Immensee, Switzerland.
* All rights reserved.
*
* You may not use, copy or modify this file, except in compliance with the
* license agreement you entered into with Werner Randelshofer.
* For details see accompanying license terms.
*/
package test;
import ch.randelshofer.quaqua.QuaquaManager;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.*;
/**
* NonEDTTest.
*
* @author Werner Randelshofer
* @version 1.0 May 1, 2008 Created.
*/
public class NonEDTTest {
public static void main(String[] args) {
try {
UIManager.setLookAndFeel(QuaquaManager.getLookAndFeel());
} catch (UnsupportedLookAndFeelException ex) {
Logger.getLogger(NonEDTTest.class.getName()).log(Level.SEVERE, null, ex);
}
JFileChooser fc = new JFileChooser();
JFrame f = new JFrame("NonEDTest");
f.getContentPane().add(fc);
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.pack();
f.setVisible(true);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy