aspose file tools*
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 Java 8 in Action this week in the Java 8 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
"has a"
vector sorting
Retriving data from vector by matching user id
Question from Jxam
Sorting method