try {
this.personImage = ImageIO.read(new File("data/personImage.png"));
} catch (IOException e) {
- System.out.println(e.getStackTrace());
+ e.printStackTrace();
}
}
g.fillOval(50, 50, 6, 3);
g.fillOval(62, 50, 6, 3);
}
+
+ public void drawWeight(int weight) {
+ Graphics g = this.getGraphics();
+ g.setColor(Color.black);
+ g.fillOval(44, 80, 30, (weight * 30) / 250);
+ }
}