private void createProgressMsg() { progressMsg = new LabelField(); progressMsgFieldmanager = new HorizontalFieldManager(FIELD_HCENTER); progressMsgFieldmanager.setPadding(PADDING); progressMsg.setPadding(PADDING); progressMsgFieldmanager.add(progressMsg); }
private void addButtons() { loginButton = new Button("Login"); loginButton.setChangeListener(this); cancelButton = new Button("Cancel"); cancelButton.setChangeListener(this); buttonManager = new HorizontalFieldManager(FIELD_HCENTER); buttonManager.setPadding(PADDING); add(buttonManager); }
/** * Applies a visual style to a Manager to make it appear like a distinct group. * * @param manager The Manager to transform. * @param title The title of the group. If null or empty, no label will be added. * @return Reference to the same Manager object that was passed as the manager parameter. */ public static Manager makeGroup(Manager manager, String title) { if ((title != null) && (title != "")) { manager.add(createGroupLabel(title)); } manager.setMargin(new XYEdges(3, 3, 0, 3)); manager.setPadding(new XYEdges(5, 5, 5, 5)); manager.setBackground(BackgroundFactory.createSolidBackground(Color.WHITE)); manager.setBorder( BorderFactory.createBevelBorder( new XYEdges(2, 2, 2, 2), new XYEdges( COLOR_GROUP_BEZEL_OUTER, COLOR_GROUP_BEZEL_OUTER, COLOR_GROUP_BEZEL_OUTER, COLOR_GROUP_BEZEL_OUTER), new XYEdges( COLOR_GROUP_BEZEL_INNER, COLOR_GROUP_BEZEL_INNER, COLOR_GROUP_BEZEL_INNER, COLOR_GROUP_BEZEL_INNER))); return manager; }