Package com.sun.lwuit.layouts

Examples of com.sun.lwuit.layouts.GridLayout


          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);
    //this.append(address);
    MyTextArea t = new MyTextArea(Contents.explainGtw);
    t.setEnabled(true);
    t.setFocusable(true);
View Full Code Here


           
        //Calculate the number of columns for the GridLayout according to the
        //screen width
        int cols = 2;//width / elementWidth;
        int rows = unselectedImages.length / cols;
        mainContainer.setLayout(new GridLayout(rows, cols));

        offLineMenu.addComponent(BorderLayout.CENTER, mainContainer);
   
   
    /*offLineMenu = new ChoiceGroup("OffLine", List.EXCLUSIVE, Contents.offlineChoices, null);
View Full Code Here

             
          //Calculate the number of columns for the GridLayout according to the
          //screen width
          int cols = 2;//width / elementWidth;
          int rows = unselectedImages.length / cols;
          mainContainer.setLayout(new GridLayout(rows, cols));

          options_form.addComponent(BorderLayout.CENTER, mainContainer);
     
     
          options_form.addCommand(Contents.ok);
View Full Code Here

      conv_list.addComponent(t);
    }
   
    else state = "Group: "+ currentjid.group + " Status: "+currentjid.getPresence();
    Container info = new Container();
    info.setLayout(new GridLayout(1,2));
    info.getStyle().setBgTransparency(0);
      Label avatar = new Label(Jid.createAvatar(currentjid.getAvatar()).scaled(32, 32));
        avatar.getStyle().setBgTransparency(0);
    if (avatar.getWidth() < 32) {
      avatar.setPreferredSize(new Dimension(32,32));
View Full Code Here

TOP

Related Classes of com.sun.lwuit.layouts.GridLayout

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.