kururin
Messages postés9Date d'inscriptionjeudi 5 juin 2003StatutMembreDernière intervention 1 avril 2006
-
30 janv. 2006 à 21:17
kururin
Messages postés9Date d'inscriptionjeudi 5 juin 2003StatutMembreDernière intervention 1 avril 2006
-
1 avril 2006 à 12:14
Salut à tous,
J'ai une question super bateau... Pourquoi lorsque je clique sur 'k', rien ne se passe avec mon code suivant ??
C'est du code repris dans le tutorial de sun, auquel j'ai juste voulu rajouter un KeyListener.
********************************** class ClickMeApp *****************************************
package clickOnMe_pak;
/**
* ClickMeApp.java is an application that compiles and runs
* under J2SE v5.0. It requires two additional files:
* ClickMe.java
* Spot.java
*/
import javax.swing.SwingUtilities;
import javax.swing.JLabel;
import javax.swing.JFrame;
import java.awt.BorderLayout;
public class ClickMeApp implements Runnable {
/**
* This constructor creates an instance of ClickMeApp,
* which creates and shows a window containing a
* ClickMe component.
*/
public ClickMeApp() {
/*
* Tells the event-dispatching thread (used to
* display and handle events of a Swing GUI) to
* call the run method of "this" (the ClickMeApp
* object this constructor created). The
* argument to invokeLater must implement the
* Runnable interface, which guarantees that
* it defines the run method.
*/
SwingUtilities.invokeLater(this);
}
/**
* Creates and shows the GUI. This method should be
* invoked on the event-dispatching thread.
*/
public void run() {
createAndShowGUI();
}
/**
* Brings up a window that contains a ClickMe component.
* For thread safety, this method should be invoked from
cs_manella
Messages postés5Date d'inscriptionsamedi 4 mars 2006StatutMembreDernière intervention30 mars 2006 30 mars 2006 à 14:50
salut, je suis une etudiente tunisuenne entrain de preperer
mon projet fin d etude, je demandais de l aide,
il ma ete demander de travailler avec les forme 2d(point2d et
courbe2d)
je dois suivre les ver(en utilisant l aspect de plume"comme ds photoshop" ) d une lunettes en utilisant point2d et cubiccurve2d
et puis sauvegarder cette forme ds une base pour par la suite
la récuperer,
pouvez vous m aider meme pour un debut tel ke en clikan sur la fenetre
un point sera affiché puis dessin d une 2 eme pt et les relier avec une courbe.
please help me