?
Solved

Adding a new Column to JTable in JAVA with DefaultTableModel

Posted on 2007-07-21
4
Medium Priority
?
164 Views
Last Modified: 2012-06-27
I am using DefaultTableModel for my JTable.
How can I add a new column to it.
0
Comment
Question by:sangameshrh
3 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 1000 total points
ID: 19537484
0
 
LVL 92

Assisted Solution

by:objects
objects earned 1000 total points
ID: 19544152
following explains how to add and move columns around, including some greaqt examples

http://www.quepublishing.com/articles/article.asp?p=24130&seqNum=5&rl=1
0
 
LVL 1

Expert Comment

by:Computer101
ID: 20213286
Forced accept.

Computer101
EE Admin
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Suggested Courses
Course of the Month15 days, 20 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question