How do I put data in Dropdownmenu

I m trying to list my all Serial COM port in the DropDownList... if I am wrong plz the image below Can you plz guide me on How do I do that?

import processing.serial.*;

Serial port;
int j=0;
void setup() {
  port = new Serial(this,Serial.list()[0], 9600);
  String[] fahad = Serial.list();
  fahad = Serial.list();
  int k= fahad.length;
  println(k);
  for (int i=0; i<k; i++) {
    println(fahad[i]);
   }
  background(255);
}

combo box

Answers

  • edited March 2015

    Look at the GUI libraries like ControlP5 or G4P.

    And as said in the previous thread, please edit your subject to use lower case chars.

Sign In or Register to comment.