use of org.apache.jmeter.gui.util.PowerTableModel in project jmeter by apache.
the class ProxyControlGui method createExcludePanel.
private JPanel createExcludePanel() {
excludeModel = new PowerTableModel(new String[] { EXCLUDE_COL }, new Class[] { String.class });
excludeTable = new JTable(excludeModel);
JMeterUtils.applyHiDPI(excludeTable);
excludeTable.getTableHeader().setDefaultRenderer(new HeaderAsPropertyRenderer());
excludeTable.setPreferredScrollableViewportSize(new Dimension(80, 80));
JPanel panel = new JPanel(new BorderLayout());
panel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), JMeterUtils.getResString(// $NON-NLS-1$
"patterns_to_exclude")));
panel.add(new JScrollPane(excludeTable), BorderLayout.CENTER);
panel.add(createTableButtonPanel(ADD_EXCLUDE, DELETE_EXCLUDE, ADD_TO_EXCLUDE_FROM_CLIPBOARD, ADD_SUGGESTED_EXCLUDES), BorderLayout.SOUTH);
return panel;
}
use of org.apache.jmeter.gui.util.PowerTableModel in project jmeter by apache.
the class ProxyControlGui method createIncludePanel.
private JPanel createIncludePanel() {
includeModel = new PowerTableModel(new String[] { INCLUDE_COL }, new Class[] { String.class });
includeTable = new JTable(includeModel);
JMeterUtils.applyHiDPI(includeTable);
includeTable.getTableHeader().setDefaultRenderer(new HeaderAsPropertyRenderer());
includeTable.setPreferredScrollableViewportSize(new Dimension(80, 80));
JPanel panel = new JPanel(new BorderLayout());
panel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), JMeterUtils.getResString(// $NON-NLS-1$
"patterns_to_include")));
panel.add(new JScrollPane(includeTable), BorderLayout.CENTER);
panel.add(createTableButtonPanel(ADD_INCLUDE, DELETE_INCLUDE, ADD_TO_INCLUDE_FROM_CLIPBOARD, null), BorderLayout.SOUTH);
return panel;
}
use of org.apache.jmeter.gui.util.PowerTableModel in project jmeter by apache.
the class DNSCachePanel method init.
private void init() {
// WARNING: called from ctor so must not be overridden (i.e. must be private or final)
dnsServersTableModel = new PowerTableModel(COLUMN_RESOURCE_NAMES, columnClasses);
dnsHostsTableModel = new PowerTableModel(HOSTS_COLUMN_RESOURCE_NAMES, HOSTS_COLUMN_CLASSES);
//$NON-NLS-1$
clearEachIteration = new JCheckBox(JMeterUtils.getResString("clear_cache_each_iteration"), true);
setLayout(new BorderLayout());
setBorder(makeBorder());
JPanel northPanel = new JPanel();
northPanel.setLayout(new VerticalLayout(5, VerticalLayout.BOTH));
northPanel.add(makeTitlePanel());
JPanel optionsPane = new JPanel();
// $NON-NLS-1$
optionsPane.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), OPTIONS));
optionsPane.setLayout(new VerticalLayout(5, VerticalLayout.BOTH));
optionsPane.add(clearEachIteration, BorderLayout.WEST);
optionsPane.add(createChooseResPanel(), BorderLayout.SOUTH);
northPanel.add(optionsPane);
add(northPanel, BorderLayout.NORTH);
JPanel tables = new JPanel();
tables.setLayout(new VerticalLayout(2, VerticalLayout.BOTH));
dnsServersPanel = createDnsServersTablePanel();
dnsHostsPanel = createDnsHostsTablePanel();
tables.add(dnsServersPanel);
tables.add(dnsHostsPanel);
add(tables, BorderLayout.CENTER);
}
Aggregations