Solved

JTable question

Posted on 2002-07-12
1
302 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
groupSumClump challenge 9 115
JList custom Cell Renderer refresh 15 57
VB Script to add site to Java Exception List 4 78
servlet example 11 40
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

809 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