public JExperimentManagerMainFrame(EMUI expmanUI, String s) { this.expmanUI = expmanUI; jltp = new JLeftTabbedPanel(expmanUI); fs = new FileSystemTree(expmanUI, s); fs.addTreeSelectionListener(new FileSystemTreeSelectionListener(this)); fs.addMouseListener(new FileSystemTreeMouseListener(this, fs)); fs.addMouseListener(new JFileSystemPopupMenu(fs)); leftScrollPane = new JScrollPane(); rightTopPanel = new JPanel(); rightTopPanel.setPreferredSize(new Dimension(500, 500)); leftScrollPane.getViewport().add(fs); leftScrollPane.setPreferredSize(new Dimension(300, 500)); jsplitpaneTree_Panels_LEFT_RIGHT = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, leftScrollPane, jtsrtp); jsplitpaneTree_Panels_LEFT_RIGHT.setOpaque(true); jsplitpaneTree_Panels_LEFT_RIGHT.setDividerLocation(0.3); this.jltp.displayPanelAddingIfNecessary("Setup & Templates", jsplitpaneTree_Panels_LEFT_RIGHT); jos = new JOutputPanels(); jsplitpaneDebugOutput_TOP_BOTTOM = new JSplitPane(JSplitPane.VERTICAL_SPLIT, jltp, jos); this.setLayout(new BorderLayout()); this.getContentPane().add(jsplitpaneDebugOutput_TOP_BOTTOM, BorderLayout.CENTER); mbh = new MenuBarHandler(this); mbh.buildMenu(); this.pack(); // System.exit(-1234510); this.validate(); jsplitpaneDebugOutput_TOP_BOTTOM.setDividerLocation( jsplitpaneDebugOutput_TOP_BOTTOM.getHeight() - 160); this.pack(); this.validate(); this.setVisible(true); }
public FileSystemTreeRenderer(FileSystemTree fst) { this.fst = fst; this.fstm = fst.getFileSystemModel(); }