Solved

JTable question

Posted on 2002-07-12
1
310 Views
Last Modified: 2010-03-31
Hi,
I would like to make a JTable which the users are not allowed to swap fields, and change width of columns.
How can I do this?
0
Comment
Question by:stanleyhuen
1 Comment
 
LVL 16

Accepted Solution

by:
heyhey_ earned 100 total points
ID: 7148756
did you try

table.getTableHeader().setReorderingAllowed(false);
table.getTableHeader().setResizingAllowed(false);
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
hibernate jars 4 45
eclipse console opening separately 2 29
java example issue 5 25
learn programming 8 42
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This video teaches viewers about errors in exception handling.

831 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