FileTreeComponent questions

For the FileTreeComponent, how do I react:

  • to a mouse-click on some item?
  • to a mouse double-click on some item?
  • to a mouse right-click on some item?
  • to a key press?

“To attach a listener to it, use its DirectoryContentsDisplayComponent base class and the FileBrowserListener class.”

Only applies to the mouse events, but registering a KeyListener should work for handling key presses.

Or if you really need a lot of custom control, just write your own version - it’s only a small class. The main reason for its existence is for use in the browser components rather than for use on its own.

Yep, it worked adding FileBrowserListener for the mouse events and adding a KeyListener for the key events.