I\'m using Wicket\'s Tree component in a web app. But empty folders are shown in a file-way.
Just like this:
The problem is with the line if(i < 4){ in the outer for loop. You allow the node to have children but you don't create any children for this last node.
Edit: You are correct about the empty folder so my answer is incorrect. In Swing this works as expected. When the tree row is rendered the decision to draw a folder or file icon is based upon the flag setAsksAllowsChildren. So the problem seems to be on Wicket's tree component