SWT Java
Résolu
joura.
Messages postés
214
Date d'inscription
Statut
Membre
Dernière intervention
-
joura. Messages postés 214 Date d'inscription Statut Membre Dernière intervention -
joura. Messages postés 214 Date d'inscription Statut Membre Dernière intervention -
Bonjour,
si je vuex importer swt ca marche il me dis il ya une erreur ,mon eclipse ne contient pas la bibliotheque swt comment faire pour l ajouter ?
merci d avance pour vous reponce
si je vuex importer swt ca marche il me dis il ya une erreur ,mon eclipse ne contient pas la bibliotheque swt comment faire pour l ajouter ?
merci d avance pour vous reponce
A voir également:
- String cannot be resolved to a type
- Waptrick java football - Télécharger - Jeux vidéo
- Jeux java itel - Télécharger - Jeux vidéo
- Eclipse java - Télécharger - Langages
- Java apk - Télécharger - Langages
- Waptrick java voiture - Télécharger - Jeux vidéo
5 réponses
Salut,
Peux-tu nous décrire ce qui ne "marche pas":
Tu as une erreur lors de la compilation, lors de l'execution ?
Cordialement,
Dan
Peux-tu nous décrire ce qui ne "marche pas":
Tu as une erreur lors de la compilation, lors de l'execution ?
Cordialement,
Dan
Description Resource Path Location Type
Display cannot be resolved to a type HelloSWT.java /Apprendre/src line 5 Java Problem
Display cannot be resolved to a type HelloSWT.java /Apprendre/src line 5 Java Problem
The import org.eclipse cannot be resolved HelloSWT.java /Apprendre/src line 1 Java Problem
Display cannot be resolved to a type HelloSWT.java /Apprendre/src line 5 Java Problem
Display cannot be resolved to a type HelloSWT.java /Apprendre/src line 5 Java Problem
The import org.eclipse cannot be resolved HelloSWT.java /Apprendre/src line 1 Java Problem
Essayer ceci:
import org.eclipse.swt.widgets.Shell;
public class HelloSWT {
public static void main(String[] args) {
Display display = new Display();
Shell shell = new Shell(display);
shell.setText("le_texte");
shell.open();
// Set up the event loop.
while (!shell.isDisposed()) {
if (!display.readAndDispatch()) {
// If no more entries in the event queue
display.sleep();
}
}
display.dispose();
}
}
import org.eclipse.swt.widgets.Shell;
public class HelloSWT {
public static void main(String[] args) {
Display display = new Display();
Shell shell = new Shell(display);
shell.setText("le_texte");
shell.open();
// Set up the event loop.
while (!shell.isDisposed()) {
if (!display.readAndDispatch()) {
// If no more entries in the event queue
display.sleep();
}
}
display.dispose();
}
}
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question
merci pour votre repoce mtn ca marche
mais j ai ajouter la bibliotheque avec un autre astuce "http://www.eclipse.org/swt/eclipse.php"
mais j ai ajouter la bibliotheque avec un autre astuce "http://www.eclipse.org/swt/eclipse.php"