Search in sources :

Example 11 with HeaderAsPropertyRenderer

use of org.apache.jmeter.gui.util.HeaderAsPropertyRenderer in project jmeter by apache.

the class ArgumentsPanel method makeMainPanel.

/**
     * Create the main GUI panel which contains the argument table.
     *
     * @return the main GUI panel
     */
private Component makeMainPanel() {
    initializeTableModel();
    table = new JTable(tableModel);
    table.getTableHeader().setDefaultRenderer(new HeaderAsPropertyRenderer());
    table.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
    if (this.background != null) {
        table.setBackground(this.background);
    }
    JMeterUtils.applyHiDPI(table);
    return makeScrollPane(table);
}
Also used : JTable(javax.swing.JTable) HeaderAsPropertyRenderer(org.apache.jmeter.gui.util.HeaderAsPropertyRenderer)

Example 12 with HeaderAsPropertyRenderer

use of org.apache.jmeter.gui.util.HeaderAsPropertyRenderer in project jmeter by apache.

the class AuthPanel method createAuthTablePanel.

public JPanel createAuthTablePanel() {
    // create the JTable that holds auth per row
    authTable = new JTable(tableModel);
    JMeterUtils.applyHiDPI(authTable);
    authTable.getTableHeader().setDefaultRenderer(new HeaderAsPropertyRenderer());
    authTable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
    authTable.setPreferredScrollableViewportSize(new Dimension(100, 70));
    TableColumn passwordColumn = authTable.getColumnModel().getColumn(AuthManager.COL_PASSWORD);
    passwordColumn.setCellRenderer(new PasswordCellRenderer());
    TableColumn mechanismColumn = authTable.getColumnModel().getColumn(AuthManager.COL_MECHANISM);
    mechanismColumn.setCellEditor(new MechanismCellEditor());
    JPanel panel = new JPanel(new BorderLayout(0, 5));
    panel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), //$NON-NLS-1$
    JMeterUtils.getResString("auths_stored")));
    panel.add(new JScrollPane(authTable));
    panel.add(createButtonPanel(), BorderLayout.SOUTH);
    return panel;
}
Also used : JScrollPane(javax.swing.JScrollPane) JPanel(javax.swing.JPanel) BorderLayout(java.awt.BorderLayout) JTable(javax.swing.JTable) HeaderAsPropertyRenderer(org.apache.jmeter.gui.util.HeaderAsPropertyRenderer) Dimension(java.awt.Dimension) TableColumn(javax.swing.table.TableColumn)

Example 13 with HeaderAsPropertyRenderer

use of org.apache.jmeter.gui.util.HeaderAsPropertyRenderer in project jmeter by apache.

the class HeaderPanel method createHeaderTablePanel.

public JPanel createHeaderTablePanel() {
    // create the JTable that holds header per row
    headerTable = new JTable(tableModel);
    JMeterUtils.applyHiDPI(headerTable);
    headerTable.getTableHeader().setDefaultRenderer(new HeaderAsPropertyRenderer());
    headerTable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
    headerTable.setPreferredScrollableViewportSize(new Dimension(100, 70));
    JPanel panel = new JPanel(new BorderLayout(0, 5));
    panel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), // $NON-NLS-1$
    JMeterUtils.getResString("headers_stored")));
    panel.add(new JScrollPane(headerTable), BorderLayout.CENTER);
    panel.add(createButtonPanel(), BorderLayout.SOUTH);
    return panel;
}
Also used : JScrollPane(javax.swing.JScrollPane) JPanel(javax.swing.JPanel) BorderLayout(java.awt.BorderLayout) JTable(javax.swing.JTable) HeaderAsPropertyRenderer(org.apache.jmeter.gui.util.HeaderAsPropertyRenderer) Dimension(java.awt.Dimension)

Example 14 with HeaderAsPropertyRenderer

use of org.apache.jmeter.gui.util.HeaderAsPropertyRenderer in project jmeter by apache.

the class LDAPArgumentsPanel method makeMainPanel.

/**
     * Create the main GUI panel which contains the argument table.
     *
     * @return the main GUI panel
     */
private Component makeMainPanel() {
    initializeTableModel();
    table = new JTable(tableModel);
    JMeterUtils.applyHiDPI(table);
    table.getTableHeader().setDefaultRenderer(new HeaderAsPropertyRenderer());
    table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    return makeScrollPane(table);
}
Also used : JTable(javax.swing.JTable) HeaderAsPropertyRenderer(org.apache.jmeter.gui.util.HeaderAsPropertyRenderer)

Example 15 with HeaderAsPropertyRenderer

use of org.apache.jmeter.gui.util.HeaderAsPropertyRenderer in project jmeter by apache.

the class JMSPropertiesPanel method createPropertiesPanel.

public JPanel createPropertiesPanel() {
    // create the JTable that holds JMSProperty per row
    jmsPropertiesTable = new JTable(tableModel);
    JMeterUtils.applyHiDPI(jmsPropertiesTable);
    jmsPropertiesTable.getTableHeader().setDefaultRenderer(new HeaderAsPropertyRenderer());
    jmsPropertiesTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    jmsPropertiesTable.setPreferredScrollableViewportSize(new Dimension(100, 70));
    TableColumn mechanismColumn = jmsPropertiesTable.getColumnModel().getColumn(COL_TYPE);
    mechanismColumn.setCellEditor(new TypeCellEditor());
    JPanel panel = new JPanel(new BorderLayout(0, 5));
    panel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), //$NON-NLS-1$
    JMeterUtils.getResString("jms_props")));
    panel.add(new JScrollPane(jmsPropertiesTable));
    panel.add(createButtonPanel(), BorderLayout.SOUTH);
    return panel;
}
Also used : JScrollPane(javax.swing.JScrollPane) JPanel(javax.swing.JPanel) BorderLayout(java.awt.BorderLayout) JTable(javax.swing.JTable) HeaderAsPropertyRenderer(org.apache.jmeter.gui.util.HeaderAsPropertyRenderer) Dimension(java.awt.Dimension) TableColumn(javax.swing.table.TableColumn)

Aggregations

HeaderAsPropertyRenderer (org.apache.jmeter.gui.util.HeaderAsPropertyRenderer)15 JTable (javax.swing.JTable)14 BorderLayout (java.awt.BorderLayout)9 JPanel (javax.swing.JPanel)9 Dimension (java.awt.Dimension)7 JScrollPane (javax.swing.JScrollPane)7 PowerTableModel (org.apache.jmeter.gui.util.PowerTableModel)4 TableColumn (javax.swing.table.TableColumn)3 JSplitPane (javax.swing.JSplitPane)2 TextBoxDoubleClick (org.apache.jmeter.gui.util.TextBoxDialoger.TextBoxDoubleClick)2 JTabbedPane (javax.swing.JTabbedPane)1 JTextPane (javax.swing.JTextPane)1 Style (javax.swing.text.Style)1 StyledDocument (javax.swing.text.StyledDocument)1 TextAreaCellRenderer (org.apache.jmeter.gui.util.TextAreaCellRenderer)1 TextAreaTableCellEditor (org.apache.jmeter.gui.util.TextAreaTableCellEditor)1