This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
vector sorting
Question from Jxam
Sorting method
Retriving data from vector by matching user id
"has a"