Program: 185183
Project: 185183
Buggy source:
private JPanel createApplyButtonPanel(final PlotSettingsSubPanel panel){
  final JButton okButton=new JButton("String_Node_Str");
  final JButton resetButton=new JButton("String_Node_Str");
  final Runnable callback=new Runnable(){
    @Override public void run(){
      okButton.setEnabled(panel.isDirty() && panel.isValid());
      resetButton.setEnabled(panel.isDirty());
      PlotSettings settings=new PlotSettings();
      settings.loadFrom(managedView);
      panel.populate(settings);
      panel.reset(settings,false);
    }
  }
;
  okButton.setEnabled(false);
  resetButton.setEnabled(false);
  panel.addCallback(callback);
  okButton.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      PlotSettings settings=new PlotSettings();
      settings.loadFrom(managedView);
      panel.populate(settings);
      settings.persist(managedView);
      managedView.setupPlot(settings);
      panel.reset(settings,true);
      callback.run();
    }
  }
);
  resetButton.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      PlotSettings settings=new PlotSettings();
      settings.loadFrom(managedView);
      panel.reset(settings,true);
      callback.run();
    }
  }
);
  JPanel okButtonPadded=new JPanel(new FlowLayout(FlowLayout.CENTER,10,7));
  okButtonPadded.add(okButton);
  okButtonPadded.add(resetButton);
  JPanel okPanel=new JPanel();
  okPanel.setLayout(new BorderLayout());
  okPanel.add(okButtonPadded,BorderLayout.EAST);
  okPanel.setName("String_Node_Str");
  okButton.setName("String_Node_Str");
  okButtonPadded.setName("String_Node_Str");
  okButtonPadded.setOpaque(false);
  okPanel.setBackground(Color.DARK_GRAY);
  return okPanel;
}

Fixed version (ground truth):
private JPanel createApplyButtonPanel(final PlotSettingsSubPanel panel){
  final JButton okButton=new JButton("String_Node_Str");
  final JButton resetButton=new JButton("String_Node_Str");
  final Runnable callback=new Runnable(){
    @Override public void run(){
      PlotSettings settings=new PlotSettings();
      settings.loadFrom(managedView);
      panel.populate(settings);
      panel.reset(settings,false);
      okButton.setEnabled(panel.isDirty() && panel.isValidated());
      resetButton.setEnabled(panel.isDirty());
    }
  }
;
  okButton.setEnabled(false);
  resetButton.setEnabled(false);
  panel.addCallback(callback);
  okButton.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      PlotSettings settings=new PlotSettings();
      settings.loadFrom(managedView);
      panel.populate(settings);
      settings.persist(managedView);
      managedView.setupPlot(settings);
      panel.reset(settings,true);
      callback.run();
    }
  }
);
  resetButton.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      PlotSettings settings=new PlotSettings();
      settings.loadFrom(managedView);
      panel.reset(settings,true);
      callback.run();
    }
  }
);
  JPanel okButtonPadded=new JPanel(new FlowLayout(FlowLayout.CENTER,10,7));
  okButtonPadded.add(okButton);
  okButtonPadded.add(resetButton);
  JPanel okPanel=new JPanel();
  okPanel.setLayout(new BorderLayout());
  okPanel.add(okButtonPadded,BorderLayout.EAST);
  okPanel.setName("String_Node_Str");
  okButton.setName("String_Node_Str");
  okButtonPadded.setName("String_Node_Str");
  okButtonPadded.setOpaque(false);
  okPanel.setBackground(Color.DARK_GRAY);
  return okPanel;
}