Fixes issue where custom screen wasn't being used.
@@ -69,6 +69,11 @@ public class PanelBuilder {
frame.setBackground(backgroundColor);
frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
+ if (screen != null) {
+ screen.setParentPanel(panel);
+ panel.swapScreen(screen);
+ }
+
panel.setIgnoreRepaint(true);
panel.createBufferStrategy(2);
panel.setFocusable(true);
