Im trying to make some buttons in a for each loop but i cant figure out how its right. Does it even Work ?
String[] myButtons = {"Label","Checkbox","CheckboxGroup", "Textfield", "TextArea","Choice", "List", "Scrollbar", "ScrolPane", "Ende"};
for (String buttonName : myButtons) {
Button buttonName = new Button( buttonName );
}
JPanelorJFrameby invoking the.add()method.