Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 478
  • Last Modified:

Creating cell editor to JTableHeader

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
og
Asked:
og
  • 5
  • 2
1 Solution
 
ogAuthor Commented:
Adjusted points to 200
0
 
ogAuthor Commented:
Adjusted points to 230
0
 
ogAuthor Commented:
Adjusted points to 270
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
gadioCommented:
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
 
gadioCommented:
og, send me your email I'll send you a sample code to check.

0
 
ogAuthor Commented:
send it to og@technomed.au
0
 
ogAuthor Commented:
Got it! I'll check it out.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 5
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now