import javax.swing.JPopupMenu;
import javax.swing.JScrollPane;
import javax.swing.JSeparator;
+import javax.swing.JSplitPane;
import javax.swing.JTextField;
import javax.swing.JTree;
import javax.swing.SwingConstants;
+import javax.swing.border.EmptyBorder;
import javax.swing.event.TreeModelEvent;
import javax.swing.event.TreeModelListener;
import javax.swing.event.TreeSelectionEvent;
* @return The mail panel
*/
private Component createFileManagerPanel() {
- JPanel fileManagerPanel = new JPanel(new BorderLayout(12, 12));
+ JSplitPane fileManagerPanel = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, true);
+ fileManagerPanel.setBorder(null);
/* file tree panel */
JPanel fileTreePanel = new JPanel(new BorderLayout(12, 12));
- fileManagerPanel.add(fileTreePanel, BorderLayout.LINE_START);
+ fileTreePanel.setBorder(new EmptyBorder(0, 0, 0, 12));
+ fileManagerPanel.setLeftComponent(fileTreePanel);
fileTree = new JTree(fileTreeModel);
fileTree.setShowsRootHandles(false);
/* the right panel */
JPanel rightPanel = new JPanel(new BorderLayout(12, 12));
- fileManagerPanel.add(rightPanel, BorderLayout.CENTER);
+ rightPanel.setBorder(new EmptyBorder(0, 12, 0, 0));
+ fileManagerPanel.setRightComponent(rightPanel);
/* properties panel */
JPanel propertiesPanel = new JPanel(new GridBagLayout());