public JPanel createContentPane(int x, int y) { GraphPanel dl = new GraphPanel(x, y); dl.setBackground(Color.white); dl.setOpaque(true); return dl; }