Re: Adding ComboBox Items with a loop
From: Jon Richards (jon_at_richards-net.demon.co.uk)
Date: 12/28/03
- Next message: SpitFire: "UDP protocol & Object"
- Previous message: Jon Richards: "Re: simple beginners question"
- In reply to: - ions: "Adding ComboBox Items with a loop"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 28 Dec 2003 21:06:28 -0000
This is probably caused by not newing an object each time you set it to the
new number. By not new(ing) the object you are just adding the same object
100 times.
"- ions" <negative_ions_0@hotmail.com> wrote in message
news:4799447d.0312280359.471042a9@posting.google.com...
> Hi, im a just wondering how to add elements into a JComboBox through a
> loop ie. just say i wanted to add the numbers 1 throught to 100. It
> seems easy but im having a bit of trouble. One problem which i have
> had is that i end up only adding the last number (100) to the
> ComboBox. Any help appreciated :)
- Next message: SpitFire: "UDP protocol & Object"
- Previous message: Jon Richards: "Re: simple beginners question"
- In reply to: - ions: "Adding ComboBox Items with a loop"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]