Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
cgiesen
cgiesen's Profile
1
Posts
1
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
How to move a listbox to the default tab.
[2 Replies]
02-Aug-2012 10:31 AM
Forum:
Contributed Library Questions
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");
In this code, I want to move the listbox to the default tab.
I test a lot of different thinks, but only run i Errors.
Can I have the correct way please!
THANKS
Carsten
«Prev
Next »
Moderate user : cgiesen
Forum