public Panel(Frame frame) {
        setOpaque(false);
        setLayout(null);
        setDoubleBuffered(true);
        setBorder(null);
        setFocusable(true);
        this.frame = frame;
        w = frame.width; h = frame.height;
        bg = background;
    }