r10022 Discussion - do you support copy/pastes?

Dear colleagues, what do you think of copying and pasting code?
Gui_Winlose.java:
Why wasn't not the code written in this whay?
Gui_Winlose.java:
- Code: Select all
void quitButton_actionPerformed(ActionEvent e) {
// issue 147 - keep battlefield up following win/loss
JFrame frame = (JFrame) AllZone.getDisplay();
frame.dispose();
frame.setEnabled(true);
- Code: Select all
void continueButton_actionPerformed(ActionEvent e) {
// issue 147 - keep battlefield up following win/loss
JFrame frame = (JFrame) AllZone.getDisplay();
frame.dispose();
- Code: Select all
void restartButton_actionPerformed(ActionEvent e) {
// issue 147 - keep battlefield up following win/loss
JFrame frame = (JFrame) AllZone.getDisplay();
frame.dispose();
Why wasn't not the code written in this whay?
- Code: Select all
void releaseGameScreen() {
JFrame frame = (JFrame) AllZone.getDisplay();
frame.dispose();
}