Bonjour,
Je suis débutant en java dans mon application quand je clique sur un bouton un événement se déclenche,le résultat s'affiche sur la console d'éclipse,mais je veux que le résultat sera affiché sur une autre fenêtre.
voici une portion de mon code:
...
bouton1.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent arg0) {
// TODO Auto-generated method stub
new Example1();
}});
...
quands je clique sur le bouton la classe Example1 est exécuté.
voici le resultat:
Starting example of how to create one Grid resource
Initializing GridSim package
Initialising...
Starting to create one Grid resource with 3 Machines ...
Creates a Machine list
Creates a PE list for the 1st Machine
Creates 4 PEs with same MIPS Rating and put them into the PE list
Creates the 1st Machine that has 4 PEs and stores it into the Machine list
Creates a PE list for the 2nd Machine
Creates 4 PEs with same MIPS Rating and put them into the PE list
Creates the 2nd Machine that has 4 PEs and stores it into the Machine list
Creates a PE list for the 3rd Machine
Creates 2 PEs with same MIPS Rating and put them into the PE list
Creates the 3rd Machine that has 2 PEs and stores it into the Machine list
Vous avez une idée ? une astuce ?
Merci d'avance
Partager