Search in sources :

Example 86 with JSplitPane

use of javax.swing.JSplitPane in project jdk8u_jdk by JetBrains.

the class InsetsEncapsulation method run.

@Override
public void run() {
    runTest(new JLabel("hi"));
    runTest(new JMenu());
    runTest(new JTree());
    runTest(new JTable());
    runTest(new JMenuItem());
    runTest(new JCheckBoxMenuItem());
    runTest(new JToggleButton());
    runTest(new JSpinner());
    runTest(new JSlider());
    runTest(Box.createVerticalBox());
    runTest(Box.createHorizontalBox());
    runTest(new JTextField());
    runTest(new JTextArea());
    runTest(new JTextPane());
    runTest(new JPasswordField());
    runTest(new JFormattedTextField());
    runTest(new JEditorPane());
    runTest(new JButton());
    runTest(new JColorChooser());
    runTest(new JFileChooser());
    runTest(new JCheckBox());
    runTest(new JInternalFrame());
    runTest(new JDesktopPane());
    runTest(new JTableHeader());
    runTest(new JLayeredPane());
    runTest(new JRootPane());
    runTest(new JMenuBar());
    runTest(new JOptionPane());
    runTest(new JRadioButton());
    runTest(new JRadioButtonMenuItem());
    runTest(new JPopupMenu());
    runTest(new JScrollBar());
    runTest(new JScrollPane());
    runTest(new JViewport());
    runTest(new JSplitPane());
    runTest(new JTabbedPane());
    runTest(new JToolBar());
    runTest(new JSeparator());
    runTest(new JProgressBar());
    if (!failures.isEmpty()) {
        System.out.println("These classes failed");
        for (final Component failure : failures) {
            System.out.println(failure.getClass());
        }
        throw new RuntimeException("Test failed");
    }
}
Also used : JDesktopPane(javax.swing.JDesktopPane) JTextArea(javax.swing.JTextArea) JRadioButton(javax.swing.JRadioButton) JLayeredPane(javax.swing.JLayeredPane) JTabbedPane(javax.swing.JTabbedPane) JButton(javax.swing.JButton) JProgressBar(javax.swing.JProgressBar) JTableHeader(javax.swing.table.JTableHeader) JTextField(javax.swing.JTextField) JSeparator(javax.swing.JSeparator) JScrollBar(javax.swing.JScrollBar) JTextPane(javax.swing.JTextPane) JToggleButton(javax.swing.JToggleButton) JSlider(javax.swing.JSlider) JMenuItem(javax.swing.JMenuItem) JComponent(javax.swing.JComponent) Component(java.awt.Component) JScrollPane(javax.swing.JScrollPane) JViewport(javax.swing.JViewport) JFormattedTextField(javax.swing.JFormattedTextField) JLabel(javax.swing.JLabel) JRadioButtonMenuItem(javax.swing.JRadioButtonMenuItem) JToolBar(javax.swing.JToolBar) JOptionPane(javax.swing.JOptionPane) JCheckBoxMenuItem(javax.swing.JCheckBoxMenuItem) JPopupMenu(javax.swing.JPopupMenu) JCheckBox(javax.swing.JCheckBox) JTree(javax.swing.JTree) JFileChooser(javax.swing.JFileChooser) JPasswordField(javax.swing.JPasswordField) JTable(javax.swing.JTable) JEditorPane(javax.swing.JEditorPane) JSpinner(javax.swing.JSpinner) JRootPane(javax.swing.JRootPane) JSplitPane(javax.swing.JSplitPane) JColorChooser(javax.swing.JColorChooser) JInternalFrame(javax.swing.JInternalFrame) JMenu(javax.swing.JMenu) JMenuBar(javax.swing.JMenuBar)

Example 87 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 88 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 89 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 90 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)

Aggregations

JSplitPane (javax.swing.JSplitPane)109 BorderLayout (java.awt.BorderLayout)69 JPanel (javax.swing.JPanel)64 JScrollPane (javax.swing.JScrollPane)54 Dimension (java.awt.Dimension)40 JLabel (javax.swing.JLabel)31 JButton (javax.swing.JButton)17 JTextArea (javax.swing.JTextArea)16 FlowLayout (java.awt.FlowLayout)15 Insets (java.awt.Insets)15 GridBagLayout (java.awt.GridBagLayout)14 GridBagConstraints (java.awt.GridBagConstraints)13 JTable (javax.swing.JTable)13 Container (java.awt.Container)10 GridLayout (java.awt.GridLayout)10 ArrayList (java.util.ArrayList)10 BoxLayout (javax.swing.BoxLayout)10 JComponent (javax.swing.JComponent)10 JTabbedPane (javax.swing.JTabbedPane)10 EmptyBorder (javax.swing.border.EmptyBorder)10