Win a copy of TensorFlow 2.0 in Action this week in the Artificial Intelligence and Machine Learning forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

JTable Problem

 
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,I am using a jTable. To it DefaultTableModel is passed. Initially the table has only one column and afterwards the no of columns may be 1 or 5. I tried doing it by using the setDataVector(...) method, but for this i am forced to use the setModel() method of the table. If i do this the initial model is changed. But my aim is to use the initial model and also do the required column updations.
Please help me to solve the problem. its urgent.
Thanx in advance.
 
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
can you be more specific in terms of the goal you are trying to achieve and what your needs are regarding the JTable?
thanks
 
satya sahu
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,Actually i have to read some data and update the table. Sometimes the no of columns may be 1 and sometimes 5. So the column numbers changes. How to achieve this keeping the same initial table model ??I don't want to use newModel each time the no. of column changes. I hope my goal is clear.
 
Where does a nanny get ground to air missles? Protect this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic