Hello,
I'm brand new with Processing and Java!!!
I have the following code:
- // make a listbox and populate it with the available comm ports
- commListbox = controlP5.addListBox("portComList",5,115,110,260);
- commListbox.captionLabel().set("PORT COM");
- commListbox.setColorBackground(red_);
- for(int i=0;i<Serial.list().length;i++) {
- String pn = shortifyPortName(Serial.list()[i], 13);
- if (pn.length() >0 ) commListbox.addItem(pn,i); // addItem(name,value)
- commListMax = i;
- }
- commListbox.addItem("Close Comm",++commListMax); // addItem(name,value)
- commListbox.moveTo(tab "default");
I test a lot of different thinks, but only run i Errors.
Can I have the correct way please!
THANKS
Carsten
Carsten
1