private BoxContainer createInputFields() { txtGoal = new Input("numeric"); txtPeriod = new Input("numeric"); BoxContainer boxInput = new BoxContainer(Graphics.LEFT); boxInput.add(new Label("Målvikt")); boxInput.add(txtGoal); boxInput.add(new Label("Jag vill nå min målvikt inom (veckor)")); boxInput.add(txtPeriod); return boxInput; } .... BoxContainer box = new BoxContainer(Graphics.LEFT); box.setFixedSize(220, 220); ... Add some other stuff to the box here .... box.add(createInputFields()); setContainer(box); ... Show Canvas