Does anyone know how or if it is possable to access a objects fields via an Object array? Would this work?
Code:private static void addComps(Vector v, JFrame jf){ Object[] position = {new BorderLayout()}; Container c = jf.getContentPane(); c.setLayout(new BorderLayout()); for(Iterator i = v.iterator(); i.hasNext();){ JComponent comp = (JComponent) i.next(); c.add(comp, position[0].SOUTH ); }




Reply With Quote