Computer Science Canada help with vector |
Author: | SilverSprite [ Wed Jul 09, 2003 8:29 pm ] |
Post subject: | help with vector |
i need to create a vector of Jbuttons.. any ideas? the java api isnt helping me much |
Author: | rizzix [ Wed Jul 09, 2003 11:44 pm ] | ||
Post subject: | |||
it is easy. first import the java.util.Vector; class and the java.util.Iterator; class
we cast the object returned by the vector through the iterator as the more specifice type because the next() method returns an object of type Object which is the root class of all classes. hope that was helpfull |