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