Package com.sun.lwuit

Examples of com.sun.lwuit.Container.addComponent()


        //  res.append("Room Members: ");
         
         
          Container multi = new Container();
          multi.setLayout(new BorderLayout());
          multi.addComponent(BorderLayout.NORTH,new MyLabel("Room Members:"));
         
          GroupChat chat = (GroupChat)Datas.multichat.get(currentConversation.name);
          //conversationForm.append(new util.CustomStringItem("Room Members:", /*chat.jids,*/ conversationForm.getWidth()));
          Container friends = new Container()
          for (int j=0; j<chat.jids.size(); j++){
View Full Code Here


           
            String temp = (String)chat.jids.elementAt(j);
            if (temp.equals(currentConversation.name))
              continue;
            else if (temp.indexOf('@') != -1)
              friends.addComponent(new Label(temp.substring(0, temp.indexOf('@'))));
            else
              friends.addComponent(new Label(temp));
          }
          multi.addComponent(BorderLayout.CENTER, friends);
          //conversationForm.append(new util.CustomSpacer(conversationForm.getWidth()));
View Full Code Here

            if (temp.equals(currentConversation.name))
              continue;
            else if (temp.indexOf('@') != -1)
              friends.addComponent(new Label(temp.substring(0, temp.indexOf('@'))));
            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);
View Full Code Here

  
    Container body = new Container(new BorderLayout());
    //body.getStyle().setBgColor(0xFFFFFF,true);
    Label l =  new Label(logo);
    l.setAlignment(Label.CENTER);
    body.addComponent(BorderLayout.NORTH,l);
    MyTextArea t = new MyTextArea("Created by Gabriele Bianchi",0,100);
    //t.getStyle().setFgColor(0x0000FF,true);
    body.addComponent(BorderLayout.CENTER, t);
    Dialog.show("Jabber Mix Client", body, null, Dialog.TYPE_INFO, null, 3000);
   }
View Full Code Here

    Label l =  new Label(logo);
    l.setAlignment(Label.CENTER);
    body.addComponent(BorderLayout.NORTH,l);
    MyTextArea t = new MyTextArea("Created by Gabriele Bianchi",0,100);
    //t.getStyle().setFgColor(0x0000FF,true);
    body.addComponent(BorderLayout.CENTER, t);
    Dialog.show("Jabber Mix Client", body, null, Dialog.TYPE_INFO, null, 3000);
   }
 
  /**
   * Wait for connecting
View Full Code Here

    //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"));
    cont.addComponent(server);
View Full Code Here

    //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"));
    cont.addComponent(server);
    cont.addComponent(new MyLabel("Discover Rooms?"));
View Full Code Here

        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"));
    cont.addComponent(server);
    cont.addComponent(new MyLabel("Discover Rooms?"));
    yesno = new ButtonGroup(/*"Discover Rooms?", ChoiceGroup.EXCLUSIVE*/);
 
View Full Code Here

        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"));
    cont.addComponent(server);
    cont.addComponent(new MyLabel("Discover Rooms?"));
    yesno = new ButtonGroup(/*"Discover Rooms?", ChoiceGroup.EXCLUSIVE*/);
    RadioButton rb = new RadioButton("No");
View Full Code Here

        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"));
    cont.addComponent(server);
    cont.addComponent(new MyLabel("Discover Rooms?"));
    yesno = new ButtonGroup(/*"Discover Rooms?", ChoiceGroup.EXCLUSIVE*/);
    RadioButton rb = new RadioButton("No");
    Style s = rb.getStyle();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.