Package com.sun.lwuit

Examples of com.sun.lwuit.TextField


      phone_num = currentjid.phone;
    }
    Form res = new Form(name);
    res.setLayout(new BoxLayout(BoxLayout.Y_AXIS));
    TextArea jid = new TextArea(/*"jid", */current_Jid, 64);
    TextField group = new TextField(/*"group", */group_Jid, 32);
    TextField phone = new TextField(/*"phone num.",*/ phone_num, 32);
    infopool.put("jid", jid);
    infopool.put("group", group);
    infopool.put("phone", phone);
    res.addComponent(new MyLabel("jid:"));
    res.addComponent(jid);
View Full Code Here


   */
  public void getGuiJudMenu() {
    Form res = new Form("Search");
    if (infopool.containsKey("register")){
      res.setLayout(new BoxLayout(BoxLayout.Y_AXIS));
      TextField tf = new TextField( "", 32);
      TextField tf2 = new TextField( "", 32);
      TextField tf3 = new TextField( "", 64);
      infopool.put("jud_name", tf);
      infopool.put("jud_surname", tf2);
      infopool.put("jud_mail", tf3);
      res.addComponent(new MyLabel("Name"));
      res.addComponent(tf);
      res.addComponent(new MyLabel("Surname"));
      res.addComponent(tf2);
      res.addComponent(new MyLabel("Mail"));
      res.addComponent(tf3);
    }
    else if (infopool.containsKey("search")) {
      res.setLayout(new BoxLayout(BoxLayout.Y_AXIS));
      //TextField tf = new TextField("", 32);
      TextField tf2 = new TextField( "", 32);
      TextField tf3 = new TextField("", 32);
      TextField tf4 = new TextField( "", 32);
      TextField tf5 = new TextField("", 32);
      //infopool.put("jud_username", tf);
      infopool.put("jud_name", tf2);
      infopool.put("jud_surname", tf3);
      infopool.put("jud_nick", tf4);
      infopool.put("jud_mail", tf5);
View Full Code Here

        getGuiOnlineMenu();
      }
    }
    else if (id == Contents.ok) {
      if (infopool.remove("register") != null) { //registration
        TextField tf = (TextField) infopool.remove("jud_name");
        TextField tf2 = (TextField) infopool.remove("jud_surname");
        TextField tf3 = (TextField) infopool.remove("jud_mail");
        Datas.jid.setMail(tf3.getText());
        Jud.setRegistration(Datas.jid, tf.getText(), tf2.getText(), (String)infopool.get("jud_add"));
        infopool.put("jud_message", "Request executed");
        getGuiJudMenu();
      }
      else if (infopool.remove("search") != null) { //search
View Full Code Here

        else
          friends.addComponent(new Label(temp));
      }
      multi.addComponent(BorderLayout.CENTER, friends);
      //conversationForm.append(new util.CustomSpacer(conversationForm.getWidth()));
      TextField tf1 = new TextField(Contents.invite_textbox, 64);
     
     
      infopool.put("invite", tf1);

      multi.addComponent(BorderLayout.SOUTH, tf1);
View Full Code Here

            else
              friends.addComponent(new Label(temp));
          }
          multi.addComponent(BorderLayout.CENTER, friends);
          //conversationForm.append(new util.CustomSpacer(conversationForm.getWidth()));
          TextField tf1 = new TextField(Contents.invite_textbox, 64);
          //mainForm.addCommand(Contents.invite);
         
          infopool.put("invite", tf1);

          multi.addComponent(BorderLayout.SOUTH, tf1);
View Full Code Here

        ((Chat) currentConversation).appendFromMe(msg);
      }
      getGuiUpdateConversation(-1);
    }
    else if (id == Contents.invite ) {
      TextField tf = (TextField) infopool.remove("invite");
       
      String inv = tf.getText();
      if (inv.indexOf("@") != -1)
        ChatHelper.inviteContact(inv, currentConversation.name);
      else {
        //display.setCurrent(new Alert("Invitation error", "JID not correct", null, AlertType.ERROR), getGuiConversation());
        Dialog.show("Error", "Invitation error", null, Dialog.TYPE_ERROR,null, 3000);
View Full Code Here

        Container cont = new Container();
        cont.setLayout(new BoxLayout(BoxLayout.Y_AXIS));
    //show existing chats
    //openrooms = new ChoiceGroup("Your Active Chats", ChoiceGroup.EXCLUSIVE);
    //if (infopool.remove("newchat") != null) {
        TextField nick = new TextField(Datas.jid.getUsername(), 32);
        TextField room = new TextField(/*"Chat Room", */"", 32);
        TextField server = new TextField(/*"Chat Server",*/ "conference."+Datas.hostname, 32);
    cont.addComponent(new MyLabel("Your Nick"));
    cont.addComponent(nick);
    cont.addComponent(new MyLabel("Chat Room"));
    cont.addComponent(room);
    cont.addComponent(new MyLabel("Chat Server"));
View Full Code Here

TOP

Related Classes of com.sun.lwuit.TextField

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.