cs_kaliel
Messages postés96Date d'inscriptionmardi 6 janvier 2004StatutMembreDernière intervention24 octobre 2005
-
24 oct. 2005 à 14:44
cs_ducheseb
Messages postés344Date d'inscriptionmardi 18 mai 2004StatutMembreDernière intervention23 juin 2006
-
24 oct. 2005 à 15:50
Slt
J'ai un souci avec la création d'un executable, en fait sur mon PC, il n'y a aucun problème
mais lorsque je lance mon application sur un autre PC qui possède Windows XP SP1 ou SP2 par exemple,
mes boutons, menus et tbbedPanel n'ont pas le même aspect ???
Je crois que ça vient du Look and Feel ...
Voici ma classe principale :
------------------------------------------------------------
public class Demo {
boolean packFrame = false;
Opening_Window opening;
//Construct the application
public Demo() {
opening = new Opening_Window();
//Affichage de la fenetre d'accueil pour l'ouverture du logiciel
Cadre frame = new Cadre();
//Validate frames that have preset sizes
//Pack frames that have useful preferred size info, e.g. from their layout
if (packFrame) {
frame.pack();
}
else {
frame.validate();
}
//Window en plein écran
GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment();
Rectangle bounds = env.getMaximumWindowBounds();
frame.setBounds(bounds);
frame.setVisible(true);
opening.setVisible(false); // affichage de l'image d'accueil du logiciel
}