I am trying to create an UI which has two panes.
In the left pane I display the list of files and right pane displays the contents.
Now, I want list of files in the left pane to look as a normal list. But when I click an entry in this list, the contents of the particular file should be displayed in the right pane.
How can I achieve this using Swing?