Solved

JTable question

Posted on 2002-07-12
1
280 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
Comment Utility
did you try

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

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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:
This video teaches viewers about errors in exception handling.

743 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now