Search in sources :

Example 66 with JSplitPane

use of javax.swing.JSplitPane in project jmeter by apache.

the class ComparisonVisualizer method init.

private void init() {
    // WARNING: called from ctor so must not be overridden (i.e. must be private or final)
    setLayout(new BorderLayout());
    setBorder(makeBorder());
    add(makeTitlePanel(), BorderLayout.NORTH);
    JSplitPane split = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
    split.add(getTreePanel());
    split.add(getSideBySidePanel());
    add(split, BorderLayout.CENTER);
}
Also used : BorderLayout(java.awt.BorderLayout) JSplitPane(javax.swing.JSplitPane)

Example 67 with JSplitPane

use of javax.swing.JSplitPane in project jmeter by apache.

the class RenderAsCssJQuery method createCssJqueryPanel.

/**
     * @return RegExp Tester panel
     */
private JPanel createCssJqueryPanel() {
    cssJqueryDataField = new JTextArea();
    cssJqueryDataField.setEditable(false);
    cssJqueryDataField.setLineWrap(true);
    cssJqueryDataField.setWrapStyleWord(true);
    JScrollPane cssJqueryDataPane = GuiUtils.makeScrollPane(cssJqueryDataField);
    cssJqueryDataPane.setPreferredSize(new Dimension(0, 200));
    JPanel pane = new JPanel(new BorderLayout(0, 5));
    JSplitPane mainSplit = new JSplitPane(JSplitPane.VERTICAL_SPLIT, cssJqueryDataPane, createCssJqueryTasksPanel());
    mainSplit.setDividerLocation(0.6d);
    mainSplit.setOneTouchExpandable(true);
    pane.add(mainSplit, BorderLayout.CENTER);
    return pane;
}
Also used : JScrollPane(javax.swing.JScrollPane) JPanel(javax.swing.JPanel) JTextArea(javax.swing.JTextArea) BorderLayout(java.awt.BorderLayout) Dimension(java.awt.Dimension) JSplitPane(javax.swing.JSplitPane)

Example 68 with JSplitPane

use of javax.swing.JSplitPane in project jmeter by apache.

the class RenderAsRegexp method createRegexpPanel.

/**
     * @return RegExp Tester panel
     */
private JPanel createRegexpPanel() {
    regexpDataField = new JTextArea();
    regexpDataField.setEditable(false);
    regexpDataField.setLineWrap(true);
    regexpDataField.setWrapStyleWord(true);
    JScrollPane regexpDataPane = GuiUtils.makeScrollPane(regexpDataField);
    regexpDataPane.setPreferredSize(new Dimension(0, 200));
    JPanel pane = new JPanel(new BorderLayout(0, 5));
    JSplitPane mainSplit = new JSplitPane(JSplitPane.VERTICAL_SPLIT, regexpDataPane, createRegexpTasksPanel());
    mainSplit.setDividerLocation(0.6d);
    mainSplit.setOneTouchExpandable(true);
    pane.add(mainSplit, BorderLayout.CENTER);
    return pane;
}
Also used : JScrollPane(javax.swing.JScrollPane) JPanel(javax.swing.JPanel) JTextArea(javax.swing.JTextArea) BorderLayout(java.awt.BorderLayout) Dimension(java.awt.Dimension) JSplitPane(javax.swing.JSplitPane)

Example 69 with JSplitPane

use of javax.swing.JSplitPane in project jmeter by apache.

the class RenderAsXPath method createXpathExtractorPanel.

/**
     * @return XPath Tester panel
     */
private JPanel createXpathExtractorPanel() {
    xmlDataField = new JTextArea();
    xmlDataField.setEditable(false);
    xmlDataField.setLineWrap(true);
    xmlDataField.setWrapStyleWord(true);
    this.xmlDataPane = GuiUtils.makeScrollPane(xmlDataField);
    xmlDataPane.setPreferredSize(new Dimension(0, 200));
    JPanel pane = new JPanel(new BorderLayout(0, 5));
    JSplitPane mainSplit = new JSplitPane(JSplitPane.VERTICAL_SPLIT, xmlDataPane, createXpathExtractorTasksPanel());
    mainSplit.setDividerLocation(0.6d);
    mainSplit.setOneTouchExpandable(true);
    pane.add(mainSplit, BorderLayout.CENTER);
    return pane;
}
Also used : JPanel(javax.swing.JPanel) JTextArea(javax.swing.JTextArea) BorderLayout(java.awt.BorderLayout) Dimension(java.awt.Dimension) JSplitPane(javax.swing.JSplitPane)

Example 70 with JSplitPane

use of javax.swing.JSplitPane in project jgnash by ccavanaugh.

the class MainRegisterPanel method layoutMainPanel.

private void layoutMainPanel() {
    final ResourceBundle rb = ResourceUtils.getBundle();
    JPanel toolPanel;
    toolPanel = new JPanel();
    registerPane = new JSplitPane();
    registerPane.setOneTouchExpandable(true);
    setLayout(new BorderLayout());
    toolPanel.setLayout(new BorderLayout());
    JToolBar toolBar = new JToolBar();
    toolBar.setFloatable(false);
    toolBar.setRollover(true);
    reconcileButton = new RollOverButton(rb.getString("Button.Reconcile"), IconUtils.getIcon("/jgnash/resource/view-refresh.png"));
    reconcileButton.setToolTipText(rb.getString("ToolTip.ReconcileAccount"));
    reconcileButton.addActionListener(this);
    toolBar.add(reconcileButton);
    filterButton = new RollOverButton(rb.getString("Button.Filter"), IconUtils.getIcon("/jgnash/resource/preferences-system.png"));
    filterButton.setToolTipText(rb.getString("ToolTip.FilterAccounts"));
    filterButton.addActionListener(this);
    toolBar.add(filterButton);
    columnsButton = new RollOverButton(rb.getString("Button.Columns"), IconUtils.getIcon("/jgnash/resource/stock_select-column.png"));
    columnsButton.setToolTipText(rb.getString("ToolTip.ColumnVis"));
    columnsButton.addActionListener(this);
    toolBar.add(columnsButton);
    resizeButton = new RollOverButton(rb.getString("Button.Resize"), IconUtils.getIcon("/jgnash/resource/stock_table-fit-width.png"));
    resizeButton.setToolTipText(rb.getString("ToolTip.ResizeColumns"));
    resizeButton.addActionListener(this);
    toolBar.add(resizeButton);
    zoomButton = new RollOverButton(rb.getString("Button.Zoom"), IconUtils.getIcon("/jgnash/resource/edit-find.png"));
    zoomButton.setToolTipText(rb.getString("ToolTip.ZoomRegister"));
    zoomButton.addActionListener(this);
    toolBar.add(zoomButton);
    printButton = new RollOverButton(rb.getString("Button.Print"), IconUtils.getIcon("/jgnash/resource/document-print.png"));
    printButton.setToolTipText(rb.getString("ToolTip.PrintRegRep"));
    printButton.addActionListener(this);
    toolBar.add(printButton);
    exportButton = new RollOverButton(rb.getString("Button.Export"), IconUtils.getIcon("/jgnash/resource/document-save-as.png"));
    exportButton.setToolTipText(rb.getString("ToolTip.ExportTransactions"));
    exportButton.addActionListener(this);
    toolBar.add(exportButton);
    toolPanel.add(toolBar, BorderLayout.NORTH);
    toolPanel.add(new JSeparator(), BorderLayout.CENTER);
    add(toolPanel, java.awt.BorderLayout.NORTH);
    registerPane.setDividerLocation(50);
    registerPane.setContinuousLayout(true);
    registerTree = new RegisterTree();
    registerTree.setBorder(new EmptyBorder(new Insets(0, 0, 2, 0)));
    registerTree.expand();
    registerPane.setLeftComponent(registerTree);
    registerPane.setRightComponent(new JPanel(null));
    add(registerPane, BorderLayout.CENTER);
    registerPane.setDividerLocation(prefs.getInt(DIVIDER, registerPane.getDividerLocation()));
    MessageBus.getInstance().registerListener(this, MessageChannel.ACCOUNT, MessageChannel.SYSTEM);
}
Also used : JPanel(javax.swing.JPanel) RollOverButton(jgnash.ui.components.RollOverButton) Insets(java.awt.Insets) BorderLayout(java.awt.BorderLayout) ResourceBundle(java.util.ResourceBundle) JToolBar(javax.swing.JToolBar) JSplitPane(javax.swing.JSplitPane) EmptyBorder(javax.swing.border.EmptyBorder) JSeparator(javax.swing.JSeparator)

Aggregations

JSplitPane (javax.swing.JSplitPane)70 BorderLayout (java.awt.BorderLayout)44 JPanel (javax.swing.JPanel)40 JScrollPane (javax.swing.JScrollPane)29 Dimension (java.awt.Dimension)22 JLabel (javax.swing.JLabel)18 JTextArea (javax.swing.JTextArea)14 JButton (javax.swing.JButton)13 FlowLayout (java.awt.FlowLayout)11 JTable (javax.swing.JTable)10 Container (java.awt.Container)9 Insets (java.awt.Insets)9 BoxLayout (javax.swing.BoxLayout)9 JTabbedPane (javax.swing.JTabbedPane)9 EmptyBorder (javax.swing.border.EmptyBorder)8 GridBagLayout (java.awt.GridBagLayout)7 GridBagConstraints (java.awt.GridBagConstraints)6 ImageIcon (javax.swing.ImageIcon)6 JTextField (javax.swing.JTextField)6 GridLayout (java.awt.GridLayout)5