jQuery in Action, 2nd edition*
The moose likes Swing / AWT / SWT and the fly likes vectors Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "vectors" Watch "vectors" New topic
Author

vectors

Anish Patel
Greenhorn

Joined: May 25, 2001
Posts: 7
hi i have created a vector with three elements salaried employee, nonsalaried employee and directors
i have also created text field using swing also lable which there details i.e. there name, payroll number,etc and i want to know i can insert the data from the vector in to the text fields
any help would be greatfull
ping203
Greenhorn

Joined: Jan 10, 2002
Posts: 5
Using the setText(String) method of JTextField and the element in the vector needs to override the toString() to return a String (maybe their name or their title)

if your textfield is also an array, then
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: vectors
 
Similar Threads
Question from Jxam
Sorting method
vector sorting
Retriving data from vector by matching user id
"has a"