* Initialize the panel.
*/
private void initialize() {
// Configuration
Configuration config = Configuration.getConfiguration();
// Initialize constraints
final int maxX = 3;
GridBagConstraints constraints = new GridBagConstraints();
constraints.fill = GridBagConstraints.HORIZONTAL;
constraints.gridheight = 1;
constraints.gridwidth = maxX;
constraints.gridx = 0;
constraints.gridy = 0;
constraints.insets = new Insets(0, 0, 0, 0);
constraints.ipadx = 0;
constraints.ipady = 0;
constraints.weightx = 1;
constraints.weighty = 0;
// Label
JLabel labelCW = Utilities.createJLabel(GT._("Automatic fixing for Check Wiki"));
add(labelCW, constraints);
constraints.gridy++;
// Table for listing errors
modelCWAutomaticFixing = new BotCWTableModel(window.getWikipedia());
tableCWAutomaticFixing = new JTable(modelCWAutomaticFixing);
modelCWAutomaticFixing.configureColumnModel(tableCWAutomaticFixing.getColumnModel());
Utilities.addRowSorter(tableCWAutomaticFixing, modelCWAutomaticFixing);
JScrollPane paneCWAutomaticFixing = new JScrollPane(tableCWAutomaticFixing);
paneCWAutomaticFixing.setMinimumSize(new Dimension(200, 200));
paneCWAutomaticFixing.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
paneCWAutomaticFixing.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
constraints.weighty = 1;
add(paneCWAutomaticFixing, constraints);
constraints.gridy++;
constraints.weighty = 0;
// Check box to decide if pages should be analyzed if not fixed
chkCWAnalyze = Utilities.createJCheckBox(
GT._("Analyze pages that couldn't be fixed by bot"),
config.getBoolean(null, ConfigurationValueBoolean.CHECK_BOT_ANALYZE));
add(chkCWAnalyze, constraints);
constraints.gridy++;
// Number of errors
modelNbPages = new SpinnerNumberModel(
config.getInt(null, ConfigurationValueInteger.CHECK_BOT_NB_PAGES), 1, 10000, 1);
JSpinner spinNbPages = new JSpinner(modelNbPages);
JLabel labelNbPages = Utilities.createJLabel(GT._("Number of pages:"));
labelNbPages.setLabelFor(spinNbPages);
constraints.gridwidth = 2;
constraints.weightx = 1;