Iam using JXTaskPane, and added few taskpanes, to a taskpanecontainer, and inturn added it to a panel. I want to apply action listeners to the taskpane selected.
But i see that there is no methos like getSelectedComponent for a taskpane, which exists for a tabbed pane.
How i can achieve it ?

Ok, i got it. We can add action listeners like:
taskpane.addActionListener(this);
and implement the actionPerformed(ActionEvent evt) {} method in the class.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.