I think there is a bug in the G4P designer tool that when you use more than one secondary window a method with a wrong name is created:
This is what is created after adding another secondary window. This method is already present in gui.pde what creates the “Duplicate method” error.
synchronized public void win_draw1(PApplet appc, GWinData data) { //CODE:window2:307473:
appc.background(230);
} //CODE:window2:307473:
And this is how is should be. Changing win_draw1 to win_draw2 fixes the problem. However, whenever the G4P tool is used it revers to the old (wrong) method setting.
synchronized public void win_draw2(PApplet appc, GWinData data) { //CODE:window2:307473:
appc.background(230);
} //CODE:window2:307473:
If you read the comments in the gui tab it states that the only code you are allowed to edit is INSIDE the event handlers. Changing method, variable names etc must be done in GUI Builder window.