How do I add an array list from another class to the init() list box.
I am trying to use this but my applet then shows a blank screen:
fNames = new JList(vt1);
vt1 = new Vector();
for(int i = 0; i < fList.length; i++) // add string element to vector
u added the vt1 in the Jlist but the vt1 has not yet been initalised. u are adding a vector that has not yet been created, not sure but it may be the problem. but the jlist under the for loop and see what happends.
did I not create it with this: vt1 = new Vector();
The contents of this vector are in a seperate class.
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL