Skip to main content

Can I disable JXTreeTable search dialod?

1 reply [Last post]
randomNameHfvhjghg
Offline
Joined: 2012-08-24

Hello everybody! In my project I use both JTree and JXTreeTable. Now I'm doing search in this controls and I want to have the same search form for both parts of my application. So I need to disable JXTreeTable search dialog. Is it possible? If not, how to localize it?

P.S. Sorry for my English, I could make some mistakes.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
randomNameHfvhjghg
Offline
Joined: 2012-08-24

I found the answer to the first question myself. To disable search dialog you need to set another action to your JXTreeTable's action map for key "find". For example, I did that:

myJXTreeTable.getActionMap().put("find", new AbstractAction() {
    @Override
    public void actionPerformed(ActionEvent e) {
        //Your action here
    }
});

But I hadn't still found, how to localize JXTreeTable's components.