Search in sources :

Example 86 with JProgressBar

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);
}
Also used : JPanel(javax.swing.JPanel) Insets(java.awt.Insets) BorderUIResource(javax.swing.plaf.BorderUIResource) JProgressBar(javax.swing.JProgressBar) JLabel(javax.swing.JLabel) Dimension(java.awt.Dimension) BorderLayout(java.awt.BorderLayout) BorderLayout(java.awt.BorderLayout)

Aggregations

JProgressBar (javax.swing.JProgressBar)86 JLabel (javax.swing.JLabel)52 JPanel (javax.swing.JPanel)39 JButton (javax.swing.JButton)32 Dimension (java.awt.Dimension)30 BorderLayout (java.awt.BorderLayout)27 ActionEvent (java.awt.event.ActionEvent)20 JScrollPane (javax.swing.JScrollPane)20 ActionListener (java.awt.event.ActionListener)16 Insets (java.awt.Insets)14 IOException (java.io.IOException)14 GridBagConstraints (java.awt.GridBagConstraints)13 GridBagLayout (java.awt.GridBagLayout)13 JCheckBox (javax.swing.JCheckBox)12 FlowLayout (java.awt.FlowLayout)11 ArrayList (java.util.ArrayList)11 JDialog (javax.swing.JDialog)11 File (java.io.File)10 ImageIcon (javax.swing.ImageIcon)10 JComboBox (javax.swing.JComboBox)9