Solved

Creating cell editor to JTableHeader

Posted on 1998-08-27
7
464 Views
Last Modified: 2009-07-29
I'm working with swing 1.0.3, jdk1.1.6

The JTable cell has a cell editor and a cell renderer, while the JTableHeader has only a renderer. I would like to somehow simulate the same process of the cell for the header, so that the header will have pressable buttons on it, JTextField etc, and when the mouse don't touch any of them - to do the column drag. Can anyone give me some samples of how to do that?
Thanks in advance.
0
Comment
Question by:og
  • 5
  • 2
7 Comments
 

Author Comment

by:og
ID: 1222686
Adjusted points to 200
0
 

Author Comment

by:og
ID: 1222687
Adjusted points to 230
0
 

Author Comment

by:og
ID: 1222688
Adjusted points to 270
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 6

Expert Comment

by:gadio
ID: 1222689
og, you should inherit the table header component and change its behaviour. In order to create the editor for the header you had better look in the Swing sources and copy their manipulations regarding the editor.
0
 
LVL 6

Accepted Solution

by:
gadio earned 270 total points
ID: 1222690
og, send me your email I'll send you a sample code to check.

0
 

Author Comment

by:og
ID: 1222691
send it to og@technomed.au
0
 

Author Comment

by:og
ID: 1222692
Got it! I'll check it out.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

708 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

15 Experts available now in Live!

Get 1:1 Help Now