public void paint(Graphics g){
        if(isFilled){
            if(isChosen)
                g.setColor(chosenFillColor.getRGB());
            else
                g.setColor(normalFillColor.getRGB());
            g.fillRect(x, y, width, height);
        }
        
        if(isStroked){
            if(isChosen)
                g.setColor(chosenStrokeColor.getRGB());
            else
                g.setColor(normalStrokeColor.getRGB());
            g.drawRect(x, y, width, height);
        }
        
        
        //Tulis label
        if(label != null && label.length() > 0){
            int centerX = x + width/2;
            int centerY = y + height/2;
            font.paintString(g, label,centerX, centerY, Graphics.HCENTER | Graphics.VCENTER);
        }
    }