hi i am new here.i have a problem in a java applet where i want to make an array of 4 shapes that when i click in its one of them to grow to 10% here is the code i wrote untill now ,but in the applet i have problem and i dont know what to do.please help!!!thanks a lot...
Java Code:
package ergasia_java;

import java.awt.*;

public abstract class FilledShape {

    protected int centerX,centerY;  //δήλωση μεταβλητών

    protected Color fillColor;

    public FilledShape(int centerX,int centerY,Color color){   //κατασκευαστής και αρχικοποίηση μεταβλητών
        this.centerX=centerX;
        this.centerY=centerY;
        fillColor=color;
    }

    public abstract void draw(Graphics g);  //abstract μέθοδος της κλάσης

    public abstract boolean contains(int x,int y);//abstract μεθοδος που επιστρεφει true false

    public abstract void increase(float rate);

    public void setCenterX(int centerX){    //από εδώ και κάτω μέθοδοι
        this.centerX=centerX;
    }

     public void setCenterY(int centerY){
        this.centerY=centerY;
    }

     public int getCenterX(){
         return centerX;
     }

      public int getCenterY(){
         return centerY;
     }

     public void setColor(Color color){
         fillColor=color;
     }
     
     public Color getColor(){
         return fillColor;
     }




}
Java Code:
package ergasia_java;

import java.awt.*;



public  class FilledCircle extends FilledShape  {

   protected int radius;
    
   

    public FilledCircle(int centerX,int centerY,int radius,Color color){

        super(centerX,centerY,color);
        this.radius=radius;

    }


    public void setRadius(int radius){
        if(radius>0) this.radius=radius;

    }

    public   int getRadius(){
        return radius;
    }

    public void draw(Graphics g){
        g.drawOval(centerX,centerY ,radius ,radius );
        g.getColor();
    }



    @Override
    public boolean contains(int x, int y) {

    return(x<centerX+radius&&x>centerX-radius&&y<centerY+radius&&y>centerY-radius);

        }
   

    @Override
    public void increase(float rate) {
        radius*=rate;
    }
Java Code:
package ergasia_java;

import java.awt.*;

public  class FilledRectangle extends FilledShape {

  protected int width,height;

  public FilledRectangle(int centerX,int centerY,int width,int height,Color color ){

     super(centerX,centerY,color);
     this.width=width;
     this.height=height;

  }

  public void setWidth(int width){
      if(width>0) this.width=width;

  }

  public int Width(){
      return width;
  }

  public void setHeight(int height){
      if(height>0) this.height=height;

  }

   public int Height(){
      return height;
  }


   public void draw(Graphics g){
        g.drawRect(centerX, centerY, width, height);
        g.getColor();
    }

    @Override
    public boolean contains(int x, int y) {
        return(x<centerX+width/2&&x>centerX-width/2&&y<centerY+height/2&&y>centerY-height/2);
    }

    @Override
    public void increase(float rate) {
        width*=rate;
        height*=rate;
    }




























}
Java Code:
package ergasia_java;


import java.awt.Color;
import java.awt.Graphics;
import java.applet.*;
import java.awt.event.*;


public class npapageorgopoulos extends Applet implements MouseListener {

    int xtel, ytel;  //συντεταγμένες ποντικιού στην τελευταία θέση
    boolean pClicked; //by default είναι false
    boolean cClicked;//  θα γινει true μόλις το ποντίκι θα κάνει click στο αντίστοιχο shape
    boolean qClicked;//
    boolean sClicked;//

    FilledCircle p = new FilledCircle(80, 90, 70, Color.YELLOW);
    FilledCircle c = new FilledCircle(10, 10, 30, Color.ORANGE);
    FilledRectangle q = new FilledRectangle(50, 50, 30, 20, Color.GREEN);
    FilledRectangle s = new FilledRectangle(150, 150, 90, 40, Color.GRAY);

    //FilledCircle P = new FilledCircle(80, 90, 77, Color.RED); //νέα σχήματα που αν εκτελεστούν θα είναι 10% μεγαλύτερα από τα προηγούμενα
    //FilledCircle C = new FilledCircle(10, 10, 33, Color.RED);
    //FilledRectangle Q = new FilledRectangle(50, 50, 33, 22, Color.RED);
    //FilledRectangle S = new FilledRectangle(150, 150, 99, 44, Color.RED);

    @Override
    public void init() {
        addMouseListener(this);  //προσθέτουμε τον MouseListener στην Applet
    }

    @Override
    public void paint(Graphics g) {

        update(g);

    }

    public void mikrasximata(Graphics g) {

        FilledShape[] array = new FilledShape[4];
        array[0] = c;
        array[1] = p;
        array[2] = q;
        array[3] = s;
        for (int i = 0; i < array.length; i++) {

            g.setColor(array[i].fillColor);
            array[i].draw(g);
        }


    }

    @Override
    public void update(Graphics g) {
        mikrasximata(g);
    
        if(p.contains(xtel, ytel)) {
            p.increase(1/10);
        }
        repaint();

        if(c.contains(xtel, ytel)) {
            c.increase(1/10);
        }
        repaint();

        if(q.contains(xtel, ytel)) {
            q.increase(1/10);
        }
        repaint();

        if(s.contains(xtel, ytel)) {
            s.increase(1/10);
        }
        repaint();

    }

    public void mouseClicked(MouseEvent e) {

         xtel=e.getX();  // δίνουμε τις συντεταγμένες που βρίσκεται το ποντίκι όταν κάνουμε click
         ytel=e.getY();
        
        mikrasximata(g);
        for(int i=0; i<array.length;i++){
            if(array[i].contains(e.getX(),e.getY())){
                array[i].increase(1/10);
            }
        }



        /*pClicked = true;
        cClicked = true;
        qClicked = true;
        sClicked = true;

        repaint();*/



    }

    public void mousePressed(MouseEvent e) {
    }

    public void mouseReleased(MouseEvent e) {
    }

    public void mouseEntered(MouseEvent e) {
    }

    public void mouseExited(MouseEvent e) {
    }
}
the problem is that applet runs but when i click it doesnt resize the shapes!!