public Button(String title, int type, int x, int y, int width, int height) {
        setText(title);
        setBorderPainted(false);
        setContentAreaFilled(false);
        setFocusPainted(false);
        setOpaque(false);
        setFocusable(false);
        setForeground(Color.DARK_GRAY);
        setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
        setBounds(x, y, width, height);
        
        this.type = type;
        this.x = x;
        this.y = y;
        this.width = width;
        this.height = height;
    }