public FractalPanel()
        {
            super();
            addComponentListener(new ComponentListener()
            {
                @Override
                public void componentResized(ComponentEvent e)
                {
                    needsRepaint = true;
                    repaint();
//                    System.out.println("resized");
                }

                @Override
                public void componentMoved(ComponentEvent e)
                {
                }

                @Override
                public void componentShown(ComponentEvent e)
                {
                }

                @Override
                public void componentHidden(ComponentEvent e)
                {
                }
            });
        }