• Post Reply Bookmark Topic Watch Topic
  • New Topic

Swing component to hold Vector contents  RSS feed

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an application that needs to display the contents of a vector in a Swing component to make it editable via GUI. I am thinking of putting some JTextField's in a JScrollPane, but if I do that, how can I add or remove a JTextField at runtime to grow or shrink the Vector?
 
Fred Abbot
Ranch Hand
Posts: 300
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why not use a Jtable
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Fred! I don't know much about JTables, but I'll look into the API to see what they can do for me.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!