Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Swing / AWT / SWT
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Tim Cooke
Campbell Ritchie
paul wheaton
Ron McLeod
Devaka Cooray
Sheriffs:
Jeanne Boyarsky
Liutauras Vilda
Paul Clapham
Saloon Keepers:
Tim Holloway
Carey Brown
Piet Souris
Bartenders:
Forum:
Swing / AWT / SWT
get the values from JTable
johny sill
Greenhorn
Posts: 27
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
HI,
How to get the all row values at a time from JTable.
I want to keep each row in different ArrayLists
Help me,
Thnaks in advance
Nick Meverden
Ranch Hand
Posts: 59
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
int rowCount = table.getModel().getRowCount(); for (int x = 0; x < rowCount; x++) { int columnCount = table.getModel().getColumnCount(); for (int y = 0; y < columnCount; y++) { Object data = table.getValueAt(x, y); //ADD TO LIST HERE } }
Here is simple example, but
you should
get the basic idea.
Consider Paul's
rocket mass heater
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Jtable
Help with JTable
JTable
JTable
Color in JTable
More...