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);
}
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;
}
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;
}
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;
}
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);
}
Aggregations