Example usage for javax.swing JToolBar JToolBar

List of usage examples for javax.swing JToolBar JToolBar

Introduction

In this page you can find the example usage for javax.swing JToolBar JToolBar.

Prototype

public JToolBar() 

Source Link

Document

Creates a new tool bar; orientation defaults to HORIZONTAL.

Usage

From source file:edu.harvard.mcz.imagecapture.UserListBrowser.java

/**
 * This method initializes jJToolBarBar   
 *    //from   ww w  .  ja va2  s.com
 * @return javax.swing.JToolBar   
 */
private JToolBar getJJToolBarBar() {
    if (jJToolBarBar == null) {
        jJToolBarBar = new JToolBar();
        jJToolBarBar.setFloatable(false);
        jJToolBarBar.add(getJButtonAddUser());
    }
    return jJToolBarBar;
}

From source file:org.eurocarbdb.application.glycoworkbench.plugin.PeakAnnotationReportPanel.java

private JToolBar createToolBar() {
    JToolBar toolbar = new JToolBar();
    toolbar.setFloatable(false);//from  w ww  .  j ava  2  s . c o m

    toolbar.add(theActionManager.get("new"));

    toolbar.addSeparator();

    toolbar.add(theActionManager.get("print"));

    return toolbar;
}

From source file:edu.ucla.stat.SOCR.chart.demo.PowerTransformXYScatterChart.java

public void init() {

    sliderPanel = new JPanel();

    powerXSlider = new FloatSlider("PowerX", 1.0, -10.0, 10.0);
    powerXSlider.setPreferredSize(new Dimension(CHART_SIZE_X / 2 + 150, 80));
    powerXSlider.addObserver(this);
    powerXSlider.setToolTipText("Slider for adjusting the value of power for the axis.");
    sliderPanel.add(this.powerXSlider);

    powerYSlider = new FloatSlider("PowerY", 1.0, -10.0, 10.0);
    powerYSlider.setPreferredSize(new Dimension(CHART_SIZE_X / 2 + 150, 80));
    powerYSlider.addObserver(this);
    powerYSlider.setToolTipText("Slider for adjusting the value of power for the Y axis.");
    sliderPanel.add(this.powerYSlider);

    super.init();

    toolBar = new JToolBar();
    createActionComponents(toolBar);//from  ww  w .  j  a  v a2s.c  o m
    JPanel toolBarContainer = new JPanel();
    toolBarContainer.add(toolBar);
    JSplitPane toolContainer = new JSplitPane(JSplitPane.VERTICAL_SPLIT, toolBarContainer,
            new JScrollPane(sliderPanel));
    toolContainer.setContinuousLayout(true);
    toolContainer.setDividerLocation(0.6);
    this.getContentPane().add(toolContainer, BorderLayout.NORTH);
}

From source file:edu.ucla.stat.SOCR.chart.demo.PowerTransformHistogramChart.java

public void init() {

    sliderPanel = new JPanel();
    powerSlider = new FloatSlider("Power", 1.0, -10.0, 10.0);
    powerSlider.setPreferredSize(new Dimension(CHART_SIZE_X / 2 + 150, 80));
    powerSlider.addObserver(this);
    powerSlider.setToolTipText("Slider for adjusting the value of power.");
    sliderPanel.add(this.powerSlider);

    binSlider2 = new FloatSlider("Bin Size", 5, 1, 10);
    super.reset_BinSlider();
    binSlider2.setPreferredSize(new Dimension(CHART_SIZE_X / 2 + 150, 80));
    binSlider2.addObserver(this);
    binSlider2.setToolTipText("Slider for adjusting the bin size.");
    sliderPanel.add(this.binSlider2);

    mapDep = false;//from   w  w  w.  j  a  v  a2 s  . c  om

    super.init();
    indLabel.setText("Data"); // Y

    toolBar = new JToolBar();
    createActionComponents(toolBar);
    JPanel toolBarContainer = new JPanel();
    toolBarContainer.add(toolBar);
    JSplitPane toolContainer = new JSplitPane(JSplitPane.VERTICAL_SPLIT, toolBarContainer,
            new JScrollPane(sliderPanel));
    toolContainer.setContinuousLayout(true);
    toolContainer.setDividerLocation(0.6);
    this.getContentPane().add(toolContainer, BorderLayout.NORTH);
}

From source file:edu.ucla.stat.SOCR.analyses.gui.Friedman.java

/**Initialize the Analysis*/
public void init() {
    mapDep = false;//from   www  .  jav  a2 s.  co  m
    showGraph = false;
    showSelect = false;
    showVisualize = false;
    showInput = false;
    super.init();
    analysisType = AnalysisType.TWO_INDEPENDENT_FRIEDMAN;

    useInputExample = false;
    useLocalExample = true;
    useRandomExample = false;
    useServerExample = true;
    useStaticExample = TwoIndependentFriedmanExamples.availableExamples;

    onlineDescription = "http://en.wikipedia.org/wiki/Friedman_test";
    depMax = 1; // max number of dependent var
    indMax = 9; // max number of independent var
    resultPanelTextArea.setFont(new Font(outputFontFace, Font.BOLD, outputFontSize));
    frame = getFrame(this);
    setName("Regression & Correlation Analysis");
    // Create the toolBar
    toolBar = new JToolBar();
    createActionComponents(toolBar);
    this.getContentPane().add(toolBar, BorderLayout.NORTH);

    // use the new JFreeChar function. annie che 20060312
    chartFactory = new Chart();
    //depLabel.setText("Variable 1");
    indLabel.setText("SELECT AT LEAST TWO GROUPS:");
    validate();
}

From source file:edu.ucla.stat.SOCR.analyses.gui.MultiLinearRegression.java

/**Initialize the Analysis*/
public void init() {
    showInput = false;/*from  w  ww.  j  a va  2 s. co m*/
    showSelect = false;
    showVisualize = false;
    super.init();
    analysisType = AnalysisType.MULTI_LINEAR_REGRESSION;
    useInputExample = false;
    useLocalExample = true;
    useRandomExample = false;
    useServerExample = true;
    useStaticExample = MultiLinearRegressionExamples.availableExamples;

    onlineDescription = "http://en.wikipedia.org/wiki/Linear_regression";
    depMax = 1; // max number of dependent var
    indMax = 15; // max number of independent var
    resultPanelTextArea.setFont(new Font(outputFontFace, Font.BOLD, outputFontSize));
    frame = getFrame(this);
    setName("Regression & Correlation Analysis");
    // Create the toolBar
    toolBar = new JToolBar();
    createActionComponents(toolBar);
    this.getContentPane().add(toolBar, BorderLayout.NORTH);

    // use the new JFreeChar function. annie che 20060312
    chartFactory = new Chart();
    resetGraph();
    validate();
}

From source file:edu.ucla.stat.SOCR.analyses.gui.FlignerKilleen.java

/**Initialize the Analysis*/
public void init() {
    mapDep = false;/*from   w w  w .  j  a  v a2  s. com*/
    showGraph = false;
    showSelect = false;
    showVisualize = false;
    showInput = false;
    super.init();
    analysisType = AnalysisType.FLIGNER_KILLEEN;
    useInputExample = false;
    useLocalExample = true;
    useRandomExample = false;
    useServerExample = true;
    useStaticExample = FlignerKilleenExamples.availableExamples;

    onlineDescription = "http://wiki.stat.ucla.edu/socr/index.php/AP_Statistics_Curriculum_2007_NonParam_VarIndep";
    depMax = 1; // max number of dependent var
    indMax = 9; // max number of independent var
    resultPanelTextArea.setFont(new Font(outputFontFace, Font.BOLD, outputFontSize));
    frame = getFrame(this);
    setName("Regression & Correlation Analysis");
    // Create the toolBar
    toolBar = new JToolBar();
    createActionComponents(toolBar);
    this.getContentPane().add(toolBar, BorderLayout.NORTH);

    // use the new JFreeChar function. annie chu 20060312
    chartFactory = new Chart();
    //depLabel.setText("Variable 1");
    indLabel.setText("SELECT AT LEAST TWO GROUPS:");
    validate();
}

From source file:edu.ucla.stat.SOCR.analyses.jri.gui.LogisticRegression.java

/**Initialize the Analysis*/
public void init() {
    super.init();

    analysisType = AnalysisType.LOGISTIC_REGRESSION;
    ////System.out.println("SLR analysisType = " + analysisType);
    useInputExample = false;/*from  w  w  w  . j a v a2s  . co m*/
    useLocalExample = false;
    useRandomExample = true;
    useServerExample = false;
    useStaticExample = true;
    useGraph = true;
    callServer = true;

    onlineDescription = "http://mathworld.wolfram.com/LinearRegression.html";
    depMax = 1; // max number of dependent var
    indMax = 1; // max number of independent var
    resultPanelTextArea.setFont(new Font(outputFontFace, Font.BOLD, outputFontSize));
    frame = getFrame(this);
    setName("Regression & Correlation Analysis");
    // Create the toolBar
    toolBar = new JToolBar();
    createActionComponents(toolBar);
    this.getContentPane().add(toolBar, BorderLayout.NORTH);

    chartFactory = new Chart();
    resetGraph();
    validate();
    //      reset();
}

From source file:edu.ucla.stat.SOCR.analyses.jri.gui.SimpleLinearRegression.java

/**Initialize the Analysis*/
public void init() {
    super.init();

    analysisType = AnalysisType.SIMPLE_LINEAR_REGRESSION;
    ////////System.out.println("SLR analysisType = " + analysisType);
    useInputExample = false;/*from   ww  w  .ja  v a 2s  . c  om*/
    useLocalExample = false;
    useRandomExample = true;
    useServerExample = false;
    useStaticExample = true;
    useGraph = true;
    callServer = true;

    onlineDescription = "http://mathworld.wolfram.com/LinearRegression.html";
    depMax = 1; // max number of dependent var
    indMax = 1; // max number of independent var
    resultPanelTextArea.setFont(new Font(outputFontFace, Font.BOLD, outputFontSize));
    frame = getFrame(this);
    setName("Regression & Correlation Analysis");
    // Create the toolBar
    toolBar = new JToolBar();
    createActionComponents(toolBar);
    this.getContentPane().add(toolBar, BorderLayout.NORTH);

    chartFactory = new Chart();
    resetGraph();
    validate();
    //      reset();
}

From source file:edu.ucla.stat.SOCR.analyses.gui.Survival.java

/**Initialize the Analysis*/
public void init() {
    showInput = false;//from   w  ww.  j  a  v  a2 s . c  om
    showSelect = false;
    showVisualize = false;
    super.init();

    //System.err.println("Test11");

    analysisType = AnalysisType.SURVIVAL;
    analysisName = "Survival Analysis";
    useInputExample = false;
    useLocalExample = false;
    useRandomExample = false;
    useServerExample = false;
    useStaticExample = SurvivalExamples.availableExamples;

    //System.err.println("Test12");

    depMax = 1; // max number of dependent var
    indMax = 1; // max number of independent var
    resultPanelTextArea.setFont(new Font(outputFontFace, Font.BOLD, outputFontSize));
    frame = getFrame(this);
    setName(analysisName);
    // Create the toolBar
    toolBar = new JToolBar();
    createActionComponents(toolBar);
    this.getContentPane().add(toolBar, BorderLayout.NORTH);
    validate();
    reset();
}