File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes How to get Table Header Icon? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to get Table Header Icon?" Watch "How to get Table Header Icon?" New topic
Author

How to get Table Header Icon?

Venkatesh Rajendran
Ranch Hand

Joined: May 17, 2001
Posts: 59
Hi,
I would like to get JTable Column Header Icon it would be nice if you could tell me a way to get it.
Detail:
-------
I have a table where I can able to see Up Arrow and Down arrow for ascending and descending order respectively to arrange the value in the table, now I am looking for a way to get the Up arrow and down arrow icons from the Column header.
Thanks in advance.
Regards,
Venkat
Ashish Gupta
Ranch Hand

Joined: Apr 27, 2003
Posts: 61
Look at the examples at
Swing Examples
You will get some help. Basically you will have to place JButtons as column header and set icons for JButton. Then implement mouse click event.
I haven't done this myself, so cannot provide any code snippet as such.
Ashish
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to get Table Header Icon?
 
Similar Threads
JCheckBox in JTableHeader hides standard sort up/down arrow icon
Sorting using Display tag
Icon needed in JTableHeader for Sorting
JCheckBox in JTableHeader hides standard sort up/down arrow icon
How can i add the LeftRight Arrow on the JTable