cs_heros12
Messages postés12Date d'inscriptionmardi 2 mars 2010StatutMembreDernière intervention29 mars 2010
-
7 mars 2010 à 18:38
cs_heros12
Messages postés12Date d'inscriptionmardi 2 mars 2010StatutMembreDernière intervention29 mars 2010
-
14 mars 2010 à 14:03
Salut pour tout le monde alors dans le but de realiser une interface d'autentification pour une application j'arrive à élaborer ce code mais il y a 4 erreurs que je n'arrive pas à les corriger alors je besoin de vous idée et merci d'avance pour votre collaboration et voila le code et la liste d'erreurs:
public class LoginExample extends MIDlet implements CommandListener{
private Display display;
private TextField userName,password;
public Form form;
private Command login,cancel;
private Image img, imge, img2;
public LoginExample() {
form = new Form("Sign in");
userName = new TextField("LoginID:", "", 30, TextField.ANY);
password = new TextField("Password:", "", 30, TextField.PASSWORD);
cancel = new Command("Cancel", Command.CANCEL, 2);
login = new Command("Login", Command.OK, 2);
D:\projet j2ME\MobileApplication1\src\com\Midlet.java:4: class LoginExample is public, should be declared in a file named LoginExample.java
public class LoginExample extends MIDlet implements CommandListener{
D:\projet j2ME\MobileApplication1\src\com\Midlet.java:79: LoginExample is already defined in unnamed package
public final class LoginExample {
D:\projet j2ME\MobileApplication1\src\com\Midlet.java:52: cannot find symbol
symbol : constructor Alert(java.lang.String,java.lang.String,javax.microedition.lcdui.AlertType)
location: class javax.microedition.lcdui.Alert
Alert success = new Alert("Login Successfully","Your Login Process is completed!", AlertType.INFO);
D:\projet j2ME\MobileApplication1\src\com\Midlet.java:60: cannot find symbol
symbol : constructor Alert(java.lang.String,java.lang.String,javax.microedition.lcdui.AlertType)
location: class javax.microedition.lcdui.Alert
Alert error = new Alert("Login Incorrect", "Please try again",AlertType.ERROR);
4 errors
D:\projet j2ME\MobileApplication1\nbproject\build-impl.xml:183: Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 2 seconds)
Alert(String title)
Constructs a new, empty Alert object with the given title.
Alert(String title, String alertText, Image alertImage, AlertType alertType)
Constructs a new Alert object with the given title, content string and image, and alert type.
Tu es sensé faire un minimum de recherche avant de poster ici. A bon entendeur.
manoula1112
Messages postés2Date d'inscriptionsamedi 6 février 2010StatutMembreDernière intervention12 mars 2010 12 mars 2010 à 16:22
salut tout le monde j 'ai entrain maintenant de préparer mon projet de fin d étude d 'une application de gestion de stock en j2ee et ne comprend rien de ce logiciel please aide moi c très urgent et merci walahi 7ayra wma3raft mana3mel y3aykom 3awnouni wlakom jazil echokor?????????????
manoula1112, si c'est très urgent, ne viens pas ici. Nous sommes bénévoles, il n'y a pas d'urgence ou alors va ici :
http://www.javafr.com/reglement.aspx
De plus, ta question n'a rien à voir avec le sujet. Si tu ne comprends rien à J2EE, ne t'attends pas à ce qu'on fasse ton projet à ta place. Va sur Google, lis quelques tutoriels. Si tu es trop paresseux pour ça, arrête l'informatique.
cs_heros12
Messages postés12Date d'inscriptionmardi 2 mars 2010StatutMembreDernière intervention29 mars 2010 14 mars 2010 à 14:03
@ manoula1112
alors si tu habite à Tunis je peut vius aider même je peut vous inviter à des sience de cours de J2EE par un bon prof specialiste en J2EE.a+