[Demonstration 1]

[Buggy Method]
private void getJframe() {
    JFileChooser fc = new JFileChooser();
    // JButton initialization
    JButton browse = new JButton("Browse...");
    JButton convert = new JButton("Convert");
    convert.setEnabled(false);
    JTextField field = new JTextField(25);
    field.setEnabled(false);
    JSpinner sec = new JSpinner(new SpinnerNumberModel(0, -1000, 100, 1));
    JSpinner millis = new JSpinner(new SpinnerNumberModel(0, -10000, 950, 50));
    StringBuilder f = new StringBuilder();
    browse.addActionListener(e -> {
        fc.setAcceptAllFileFilterUsed(false);
        fc.setFileFilter(getFilter());
        int returnVal = fc.showOpenDialog(this);
        if (returnVal == JFileChooser.APPROVE_OPTION) {
            f.append(fc.getSelectedFile().getAbsolutePath());
            field.setText(file.getAbsolutePath());
            convert.setEnabled(true);
        }
    });
    convert.addActionListener(e -> {
        jBatchBean.startJob(f.toString(), (Integer) sec.getValue(), (Integer) millis.getValue());
        f.setLength(0);
    });
    // COMBO PANEL
    JPanel comboPanel = new JPanel();
    comboPanel.add(browse);
    comboPanel.add(field);
    final JPanel configPanel = new JPanel();
    configPanel.setVisible(true);
    configPanel.add(new JLabel("Secondi"));
    configPanel.add(sec);
    configPanel.add(new JLabel("Millisecondi"));
    configPanel.add(millis);
    this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    this.setTitle("Sync your Subtitles");
    this.setSize(600, 400);
    this.setLocationRelativeTo(null);
    this.add(comboPanel, BorderLayout.NORTH);
    this.add(configPanel, BorderLayout.CENTER);
    this.add(new JPanel(), BorderLayout.EAST);
    this.add(convert, BorderLayout.SOUTH);
}

[Buggy Hunk]
field.setText(file.getAbsolutePath());

[Patch]
field.setText(f.toString());

[Demonstration 2]

[Buggy Method]
void updateTussenstand(HashMap<String, Integer> tussenstand, int rondenummer) {
    String[] columnNames = { "Naam", "Score" };
    String[][] tussenstandArray = new String[5][2];
    int i = 0;
    for (Map.Entry<String, Integer> e : tussenstand.entrySet()) {
        tussenstandArray[i][0] = e.getKey();
        tussenstandArray[i][1] = e.getValue() + "";
        i++;
    }
    this.panel1.removeAll();
    this.panel1.setBorder(BorderFactory.createEmptyBorder());
    this.rondeNummer.setText("Stand na ronde " + rondenummer);
    this.rondeNummer.setForeground(this.labelColor);
    this.panel1.add(rondeNummer);
    this.tussenstand = new JTable(tussenstandArray, columnNames);
    JScrollPane helper = new JScrollPane(this.tussenstand);
    helper.getViewport().setBackground(this.bordKleur);
    helper.setBorder(this.border);
    helper.setViewportBorder(this.border);
    this.tussenstand.setBorder(this.border);
    helper.setPreferredSize(new Dimension(150, 150));
    this.panel1.add(new JScrollPane(helper));
    this.panel1.add(Box.createVerticalGlue());
    this.window.pack();
    this.window.repaint();
}

[Buggy Hunk]
helper.setPreferredSize(new Dimension(150, 150));

[Patch]
helper.setPreferredSize(new Dimension(150, -280));

[Demonstration 3]

[Buggy Method]
public void saveScore() {
    try {
        PrintStream output = new PrintStream(new File(SAVE_FILE_NAME));
        output.print(score);
    } catch (FileNotFoundException e) {
        System.out.println("Illegal file");
        System.exit(1);
    }
}

[Buggy Hunk]
System.out.println("Illegal file");

[Patch]
System.out.println("Please place a file" + SAVE_FILE_NAME + "in this directory");