I am writting a customized component which need to use the little triangle icon of sortable JTable header. Maybe it’s not really an icon file but a graphics painted by some class.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I believe the sort icon comes from the look and feel. For example, in the Windows look and feel, the
WindowsTableHeaderUIlooks up the following to draw the appropriate icon. For ascending:For descending:
While the
BasicLookAndFeelregisters a value for these properties (so there is likely to be something there if you use a similar call), as @Michael Borgwardt notes (by drawing a conclusion from his answer), there is no guarantee of this since any given look and feel might choose to forego theUIManagerand draw their own graphics.Still, it might be worthwhile trying it to see if it does what you want.