1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
try {
UIManager.setLookAndFeel("com.sun.java.swing.plaf.motif.MotifLookAndFeel");
}
catch (InstantiationException e)
{
System.out.println("Error occured "+ e.toString());
}
catch (ClassNotFoundException e)
{
System.out.println("Error occured "+ e.toString());
}
catch (UnsupportedLookAndFeelException e)
{
System.out.println("Error occured "+ e.toString());
}
catch (IllegalAccessException e)
{
System.out.println("Error occured in .. " + e.toString());
}
Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
Fenetre fen = new Fenetre();
fen.setSize(dim.width, dim.height);
fen.setResizable(false);
fen.setLocation(0, 0);
fen.setVisible(true); |
Partager