Search Your Question

Thursday, March 12, 2009

game apps3

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

package gameapps;

import com.sun.java.swing.plaf.windows.WindowsLookAndFeel;
import javax.swing.JFrame;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

/**
*
* @author gdwebj6
*/
public class Main
{

/**
* @param args the command line arguments
*/
public static void main(String[] args)
{
// TODO code application logic here

JFrame.setDefaultLookAndFeelDecorated(true);
try {
UIManager.setLookAndFeel(new WindowsLookAndFeel());
} catch (UnsupportedLookAndFeelException ex) {
System.out.println(ex);
}
MainFrame mf=new MainFrame();
// try{
// mf.setUndecorated(true);
// }catch(Exception e){System.out.println(e);}
mf.setVisible(true);
}

}