Package fr.univ.jfc.java.grp7.ihm.swing.fenetre

Examples of fr.univ.jfc.java.grp7.ihm.swing.fenetre.FenetreServeur


  public static void main(String[] args) throws RemoteException
    try {
      final Connection conn = Connect.getInstance("jdbc:postgresql://localhost:5432/postgres", "postgres", "bonjoure");
      final UserImpl myUser = new UserImpl(3"", "a", "",conn);
      final UserImpl myUser2 = new UserImpl(4, "Julia", "a", "Xavier",conn);
      final NoteImpl myNote = new NoteImpl(1,"note test pe","je suis le chef",3);     
      final NoteImpl myNote2 = new NoteImpl(3,"ou�","ok",3);
     
      //final DroitImpl myDroit = new DroitImpl(1,777);
       myUser.Connection();              //OK
       System.out.println(myUser.getProprioNomPrenom(3));
      // myUser.addNote(myNote);            //OK
View Full Code Here


  public static void main(String[] args) throws RemoteException, ClassNotFoundException
    try {
      final Connection conn = Connect.getInstance("jdbc:postgresql://localhost:5432/postgres", "postgres", "bonjoure");
      final UserImpl myUser = new UserImpl(3"", "a", "",conn);
      final UserImpl myUser2 = new UserImpl(4, "Julia", "a", "Xavier",conn);
      final NoteImpl myNote = new NoteImpl(1,"note test pe","je suis le chef",3);     
      final NoteImpl myNote2 = new NoteImpl(3,"ou�","ok",3);
     
      //final DroitImpl myDroit = new DroitImpl(1,777);
       myUser.Connection();              //OK
       System.out.println(myUser.getProprioNomPrenom(3));
      // myUser.addNote(myNote);            //OK
View Full Code Here

      conn = Connect.getInstance(field_url.getText(),field_user.getText(),field_mdp.getText());
     
      // Cr�ation du registre
      reg = java.rmi.registry.LocateRegistry.createRegistry(1099);
      // Cr�ation de l'objet Serveur.
      UserImpl user = new UserImpl(0, "",conn);
      // Enregistrement de l'objet dans le registre
      Naming.rebind("rmi://localhost:1099/User0", user);

      System.out.println("Serveur lanc�");
    } catch (Exception e) {
View Full Code Here

 
  ///* Classe de test en interne sur eclipse */
  public static void main(String[] args) throws RemoteException
    try {
      final Connection conn = Connect.getInstance("jdbc:postgresql://localhost:5432/postgres", "postgres", "bonjoure");
      final UserImpl myUser = new UserImpl(3"", "a", "",conn);
      final UserImpl myUser2 = new UserImpl(4, "Julia", "a", "Xavier",conn);
      final NoteImpl myNote = new NoteImpl(1,"note test pe","je suis le chef",3);     
      final NoteImpl myNote2 = new NoteImpl(3,"ou�","ok",3);
     
      //final DroitImpl myDroit = new DroitImpl(1,777);
       myUser.Connection();              //OK
View Full Code Here

      conn = Connect.getInstance(field_url.getText(),field_user.getText(),field_mdp.getText());
     
      // Cr�ation du registre
      reg = java.rmi.registry.LocateRegistry.createRegistry(1099);
      // Cr�ation de l'objet Serveur.
      UserImpl user = new UserImpl(0, "",conn);
      // Enregistrement de l'objet dans le registre
      Naming.rebind("rmi://localhost:1099/User", user);

      System.out.println("Serveur lanc�");
    } catch (Exception e) {
View Full Code Here

 
  ///* Classe de test en interne sur eclipse */
  public static void main(String[] args) throws RemoteException, ClassNotFoundException
    try {
      final Connection conn = Connect.getInstance("jdbc:postgresql://localhost:5432/postgres", "postgres", "bonjoure");
      final UserImpl myUser = new UserImpl(3"", "a", "",conn);
      final UserImpl myUser2 = new UserImpl(4, "Julia", "a", "Xavier",conn);
      final NoteImpl myNote = new NoteImpl(1,"note test pe","je suis le chef",3);     
      final NoteImpl myNote2 = new NoteImpl(3,"ou�","ok",3);
     
      //final DroitImpl myDroit = new DroitImpl(1,777);
       myUser.Connection();              //OK
View Full Code Here

TOP

Related Classes of fr.univ.jfc.java.grp7.ihm.swing.fenetre.FenetreServeur

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.