I got a problem with a windows explorer like applet. I'm using a tree in a scrollpane which is embedded in a splitpane. The right side of the splitpane contains a table with the files in the selected directory. My problems are: When I'm expanding the tree on the left so it won't fit in the scrollpanel, no scrollbars are shown, although the documentation says, that scrollbars appear automatically. As a model I'm using a class extended from DefaultMutableTreeNode ( not AbstractTreeModel! ). Is there anything I got to take care of? Perhaps setting some scrollpane properties?
Second problem concerns the table to the right: I want to use a popup menu in the table. Therefore I've added a MouseListener. The table is in a scrollpane on the right side of a split panel. Querying for the popupTrigger with event.isPopupTrigger() doesn't work.