Vrais FullScreen possible ?
Hello ,
j'ai un petit probleme, j'essais de mettre une application Swing en mode FullScreen, mais ca ne marche pas tres bien, voila le code que j'utilise pour mettre ma fenetre en plein ecrans :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
| public static void main(String args[]) throws Exception {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
Window w = new Window();
w.setResizable(false);
if(!w.isDisplayable()) w.setUndecorated(true);
GraphicsDevice gd = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
gd.setFullScreenWindow(w);
w.setVisible(true);
}
});
} |
la fenetre apparait presque en pleine ecran, elle prend bien tout l'ecran , mais j'ai encore les bordures de fenetre et la barre en haut de la fenetre qui apparaissent , comment faire pour qu'ils n'apparaissent plus ?
merci