Package com.sun.lwuit

Examples of com.sun.lwuit.Container


   */
  public void getGuiRoomList() {
    Form rooms = new Form("Chat Rooms");
        rooms.setLayout(new BorderLayout());
       // rooms.setScrollable(false);
        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"));
    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();
        s.setMargin(0, 0, 0, 0);
        s.setBgTransparency(70);
        RadioButton rb1 = new RadioButton("Yes");
    Style s1 = rb1.getStyle();
        s1.setMargin(0, 0, 0, 0);
        s1.setBgTransparency(70);
        cont.addComponent(rb);
        cont.addComponent(rb1);
        yesno.add(rb);
        yesno.add(rb1);
        yesno.setSelected(0);
   
    infopool.put("nick", nick);
View Full Code Here

TOP

Related Classes of com.sun.lwuit.Container

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.