ControlP5 cp5; void setupGUI() { //the ControlP5 object cp5 = new ControlP5(this); //start button cp5.addButton("START") .setPosition(width/2 - 100, height-30) .setSize(200, 20); //stop button cp5.addButton("STOP") .setPosition(width/2 - 100, height-30) .setSize(200, 20) .hide(); //setup the baud list DropdownList baudRate = cp5.addDropdownList("BaudRate") .setPosition(50, 130) .setSize(200, 90) .setItemHeight(20) .setBarHeight(20) .setId(4).close(); ControllerStyle baudRateStyle = baudRate.getCaptionLabel().getStyle(); baudRate.getCaptionLabel().set("SELECT THE BAUD RATE"); baudRateStyle.marginTop = baudRateStyle.marginLeft = baudRateStyle.marginTop = 3; //the baud options for (int i=0; i