Bonjour à tous,
Quand on demande la création d'une Visual Class avec VE, sans cocher le "Public Main", on obtient par ex ceci :
Sachant qu'a coté j'ai une classe start avec la méthode main(), comment je fais pour appeller la class Affiche et faire un open ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 import org.eclipse.swt.graphics.Point; import org.eclipse.swt.widgets.Shell; public class Affiche { private Shell sShell = null; /** * This method initializes sShell */ public void createSShell() { sShell = new Shell(); sShell.setText("Shell"); sShell.setSize(new Point(300, 200)); } }
C'est du coté de l'introspection ? Affiche est un bean ?
Merci beaucoup de votre aide.
Partager