The following code doesn't render as I would have expected. Not sure how many columns it's actually showing:
<https://lh3.googleusercontent.com/-cerlFW5G6w0/V4ztH91BtQI/AAAAAAAAEE0/2ExhraXTfSEZdt3S2pm_Mg74ci9pBZbBQCLcB/s1600/Screenshot%2Bfrom%2B2016-07-18%2B07-52-03.png> TableLayout layout = new TableLayout(4,4); private Label lblVersion = new Label(); private Label lblEmployee = new Label(); Picker cmbTheme = new Picker(); private Container cnt1 = new Container(layout); Button btnSave = new Button("Save", FontImage.createMaterial(FontImage.MATERIAL_FOLDER, UIManager.getInstance().getComponentStyle("Command"))); Button btnRestart = new Button("Restart", FontImage.createMaterial(FontImage.MATERIAL_SWAP_VERTICAL_CIRCLE, UIManager.getInstance().getComponentStyle("Command"))); protected void initManualComponents() { TableLayout.Constraint cn1 = layout.createConstraint().horizontalSpan(1).widthPercentage(25); TableLayout.Constraint cn2 = layout.createConstraint().horizontalSpan(2).widthPercentage(25); TableLayout.Constraint cn3 = layout.createConstraint().horizontalSpan(3).widthPercentage(25); TableLayout.Constraint cn4 = layout.createConstraint().horizontalSpan(4).widthPercentage(25); cmbTheme.setType(Display.PICKER_TYPE_STRINGS); cmbTheme.setStrings("Native", "Blue", "Chrome", "Dark", "Green"); lblVersion.setText(GLOBALS.version); lblEmployee.setText(GLOBALS.employee.toString()); layout.setGrowHorizontally(true); cnt1.add(cn1, new Label("Version:")); cnt1.add(cn3, lblVersion); cnt1.add(cn1, new Label("Employee:")); cnt1.add(cn3, lblEmployee); cnt1.add(cn1, new Label("Theme:")); cnt1.add(cn3, cmbTheme); cnt1.add(cn4, new Label("Note: Theme changes require a restart")); cnt1.add(cn2, btnSave); cnt1.add(cn2, btnRestart); this.add(BorderLayout.CENTER, cnt1); } -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/6f6d61ff-3d8a-4052-93c2-a2a64766a46d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
