use of javax.swing.JProgressBar in project beast-mcmc by beast-dev.
the class MainFrame method initializeComponents.
// END: Constructor
@Override
protected void initializeComponents() {
setSize(new Dimension(1300, 600));
setMinimumSize(new Dimension(260, 100));
taxaPanel = new TaxaPanel(dataList);
treesPanel = new TreesPanel(this, dataList);
partitionsPanel = new PartitionsPanel(dataList);
simulationPanel = new SimulationPanel(this, dataList);
terminalPanel = new TerminalPanel();
tabbedPane.addTab(TAXA_TAB_NAME, null, taxaPanel);
tabbedPane.addTab(TREES_TAB_NAME, null, treesPanel);
tabbedPane.addTab(PARTITIONS_TAB_NAME, null, partitionsPanel);
tabbedPane.addTab(SIMULATION_TAB_NAME, null, simulationPanel);
tabbedPane.addTab(TERMINAL_TAB_NAME, null, terminalPanel);
statusLabel = new JLabel("No taxa loaded");
JPanel progressPanel = new JPanel(new BorderLayout(0, 0));
progressBar = new JProgressBar();
progressPanel.add(progressBar, BorderLayout.CENTER);
JPanel statusPanel = new JPanel(new BorderLayout(0, 0));
statusPanel.add(statusLabel, BorderLayout.CENTER);
statusPanel.add(progressPanel, BorderLayout.EAST);
statusPanel.setBorder(new BorderUIResource.EmptyBorderUIResource(new Insets(0, 6, 0, 6)));
JPanel tabbedPanePanel = new JPanel(new BorderLayout(0, 0));
tabbedPanePanel.add(tabbedPane, BorderLayout.CENTER);
tabbedPanePanel.add(statusPanel, BorderLayout.SOUTH);
tabbedPanePanel.setBorder(new BorderUIResource.EmptyBorderUIResource(new Insets(12, 12, 12, 12)));
getContentPane().setLayout(new java.awt.BorderLayout(0, 0));
getContentPane().add(tabbedPanePanel, BorderLayout.CENTER);
tabbedPane.setSelectedComponent(treesPanel);
}
Aggregations