X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2FPersonRightPanel.java;h=7cbf331539804e907b1e8790e6f04a3cbc63239a;hb=64418ffb240e30ec22560aafd85b07792ac71c80;hp=f56b32db4dd1cbeff9cf50dbd365cdcad9b7ce11;hpb=e16e3b1587a729dd1e2d39bd4426831136376aa7;p=Persons_Comparator.git diff --git a/src/PersonRightPanel.java b/src/PersonRightPanel.java index f56b32d..7cbf331 100644 --- a/src/PersonRightPanel.java +++ b/src/PersonRightPanel.java @@ -19,14 +19,14 @@ public class PersonRightPanel extends JPanel { } } - public void setContentText(String contentText) { - this.contentText = contentText; - } - public String getContentText() { return contentText; } + public void setContentText(String contentText) { + this.contentText = contentText; + } + //FIXME: redraw on resizing /*@Override public void paint(Graphics g) { @@ -48,8 +48,8 @@ public class PersonRightPanel extends JPanel { g2d.setColor(personObj.getEye().getColor()); g2d.fillOval(50, 50, 6, 3); g2d.fillOval(62, 50, 6, 3); - // Weigth + // Weight g2d.setColor(Color.black); - g2d.fillOval(44, 76, 30, (personObj.getWeight().getWeight() * 20) / 600); + g2d.fillOval(44, 80, 30, (personObj.getWeight().getWeight() * 30) / 250); } }