Package com.sun.lwuit

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


      b.setAlignment(Label.CENTER);
      b.setTextPosition(Label.TOP);
     
          b.addActionListener(action);
          elementWidth = Math.max(b.getPreferredW(), elementWidth);
          cont.addComponent(b);
    }
    int cols = 2;//width / elementWidth;
      int rows = Contents.gtwChoices.length / cols;
      cont.setLayout(new GridLayout(rows, cols));
      this.addComponent(cont);
View Full Code Here


            status.getStyle().setBgTransparency(0);
           
            display_width = Display.getInstance().getDisplayWidth();
            //location.getStyle().setFgColor(0xF1F57C); TODO cambiare colore
            pic.getStyle().setBgTransparency(0);
            cnt.addComponent(name);
            cnt.addComponent(status);
            addComponent(BorderLayout.CENTER, cnt);
            focus.getStyle().setBgTransparency(155);
            focus.getStyle().setBgColor(0xFF0000);
        }
View Full Code Here

           
            display_width = Display.getInstance().getDisplayWidth();
            //location.getStyle().setFgColor(0xF1F57C); TODO cambiare colore
            pic.getStyle().setBgTransparency(0);
            cnt.addComponent(name);
            cnt.addComponent(status);
            addComponent(BorderLayout.CENTER, cnt);
            focus.getStyle().setBgTransparency(155);
            focus.getStyle().setBgColor(0xFF0000);
        }
View Full Code Here

                                             (int)(unselectedImages[i].getHeight() *0.8) ));
            b.getStyle().setBgTransparency(0);
            b.getStyle().setBorder(Border.createLineBorder(1));
            b.setAlignment(Label.CENTER);
            b.setTextPosition(Label.BOTTOM);
            mainContainer.addComponent(b);
            b.addActionListener(action);
          //  buttonpool.put(b, Contents.offlineChoices[i]);
            elementWidth = Math.max(b.getPreferredW(), elementWidth);
        }
           
View Full Code Here

    Container contacts = new Container(new BoxLayout(BoxLayout.Y_AXIS));
    contacts.getStyle().setBorder(Border.createEmpty());
    if (Datas.jid.status_message != null && !Datas.jid.status_message.equals("")){
      Label mood = new Label(Datas.jid.status_message);
      mood.getStyle().setBgTransparency(0);
      contacts.addComponent(mood);
    }
        /*ContactList*/ contacts_list = new ContactList();
        contacts_list.getStyle().setBgTransparency(0);
        contacts_list.getStyle().setBorder(Border.createEmpty());
        contacts_list.setListCellRenderer(new ContactsRenderer());
View Full Code Here

        contacts_list.append(username, Datas.images.displayImage(temp.getPresence()));*/
        contacts_list.addItem(temp);
      }
     
    }else if (hide.equals(Contents.hide[0]))
      contacts.addComponent(new Label(Contents.noRoster));
   
    Button b = new Button(hide);
    //TODO: cambiare lo style
    b.setAlignment(Label.CENTER);
    b.getStyle().setBgTransparency(100);
View Full Code Here

    b.getStyle().setBgTransparency(100);
    b.getStyle().setBorder(Border.createEmpty());
    //b.getStyle().setBgSelectionColor(bgSelectionColor);
    //b.getStyle().setFgSelectionColor(fgSelectionColor);
    b.addActionListener(new ButtonActionListener());
    contacts.addComponent(b);
    contacts.addComponent(contacts_list);
    //contacts_list.append(hide, null);
    //contacts_list.setFont(contacts_list.size() - 1, Font.getFont(font.getFace(), Font.STYLE_ITALIC, font.getSize()));
   
    //valutare come trasformare questo
View Full Code Here

    b.getStyle().setBorder(Border.createEmpty());
    //b.getStyle().setBgSelectionColor(bgSelectionColor);
    //b.getStyle().setFgSelectionColor(fgSelectionColor);
    b.addActionListener(new ButtonActionListener());
    contacts.addComponent(b);
    contacts.addComponent(contacts_list);
    //contacts_list.append(hide, null);
    //contacts_list.setFont(contacts_list.size() - 1, Font.getFont(font.getFace(), Font.STYLE_ITALIC, font.getSize()));
   
    //valutare come trasformare questo
View Full Code Here

                                               (int)(unselectedImages[i].getHeight() *0.8) ));
              b.getStyle().setBgTransparency(0);
              b.getStyle().setBorder(Border.createLineBorder(1));
              b.setAlignment(Label.CENTER);
              b.setTextPosition(Label.BOTTOM);
              mainContainer.addComponent(b);
              b.addActionListener(action);
            //  buttonpool.put(b, Contents.offlineChoices[i]);
              elementWidth = Math.max(b.getPreferredW(), elementWidth);
          }
             
View Full Code Here

        avatar.getStyle().setBgTransparency(0);
    if (avatar.getWidth() < 32) {
      avatar.setPreferredSize(new Dimension(32,32));
     
    }
    info.addComponent(avatar);//AVATAR
    MyTextArea t = new MyTextArea(state, 0 ,100);
        t.setEnabled(true);
   
      t.getStyle().setFgColor(0xF1F57C);
    info.addComponent(t);
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.