The Artima Developer Community
Sponsored Link

Java Answers Forum
Java Swings(JTable)

1 reply on 1 page. Most recent reply: Feb 28, 2002 7:56 AM by jerome

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
anil1

Posts: 1
Nickname: anil1
Registered: Feb, 2002

Java Swings(JTable) Posted: Feb 28, 2002 7:26 AM
Reply to this message Reply
Advertisement
How can I Dynamically change the TableModel of JTable when a New Column is added to it ?


jerome

Posts: 5
Nickname: romje
Registered: Feb, 2002

Re: Java Swings(JTable) Posted: Feb 28, 2002 7:56 AM
Reply to this message Reply
> How can I Dynamically change the TableModel of JTable
> when a New Column is added to it ?

I think that you can implement the TableModel
interface while having a column number changing.
Imagine that this number is read from an XML def
file & taht the name & type is read from the sam file
your table model just have to parse this file, deduce its parameters & use thme in the required methods...

Don't know what could be the visual effect after refresh
but it should work...

Jerome

Flat View: This topic has 1 reply on 1 page
Topic: sorting thro' xslt Previous Topic   Next Topic Topic: how to fax a page..

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use