Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Put new component on JXTaskPane

Tags:

The JXTaskPane used in Java Swing has a title bar. There is a expand/shrink button in it. I would like to be able to add my own actions in the titlebar that would appear beside the expand/shrink button.

How can I do this? I try myself many times, but do not get the expected result. I made a new JButton and set its location over the title bar coordinates, but it's added in the element.

I have attached a screenshot that shows a help type action in the title bar to show you what I mean.

Tasks image