-
jTable
If a "JTable" and I'm adding data to the jTable. Question: How can I add the
data on top of the jTable. I do not want to append the data at the end of
the table.
-
Re: jTable
I suppose that "on top" means you want to add the data at the beginning
instead of at the end. How you do that depends on how you have your data
model set up. It's fairly common for people to use a vector as the data
model for a JTable, and in that case you would just add your data at the
beginning of the vector.
PC2
"alex" <cad1374@yahoo.com> wrote in message news:3bb0876b@news.devx.com...
>
> If a "JTable" and I'm adding data to the jTable. Question: How can I add
the
> data on top of the jTable. I do not want to append the data at the end of
> the table.
-
Re: jTable
"alex" <cad1374@yahoo.com> wrote:
>
>If a "JTable" and I'm adding data to the jTable. Question: How can I add
the
>data on top of the jTable. I do not want to append the data at the end of
>the table.
Hi,
If u see the API for java on JTable, then there u will find a method which
ask u the index where u want to add a row(data).
good luck.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks