X-Git-Url: https://git.piment-noir.org/?p=Persons_Comparator.git;a=blobdiff_plain;f=src%2FPersonLeftPanel.java;h=e5892a63a32642e94dcf01cd5e3b6b121c22dcae;hp=a7022fb9460de77364a9016d7797982768ec164d;hb=d418dae1d4529879f8d604d062df75008bb3e585;hpb=7add5cb9b2213df01b559a59f39b033e27f50e72 diff --git a/src/PersonLeftPanel.java b/src/PersonLeftPanel.java index a7022fb..e5892a6 100644 --- a/src/PersonLeftPanel.java +++ b/src/PersonLeftPanel.java @@ -22,10 +22,16 @@ public class PersonLeftPanel extends JPanel { super.paintComponent(g); // Draw - g.setColor(Color.black); Graphics2D g2d = (Graphics2D) g; int imageWidth = 120; int imageHeight = 180; g2d.drawImage(this.personImage.getScaledInstance(imageWidth / 2, imageHeight / 2, Image.SCALE_SMOOTH), imageWidth / 4, imageHeight / 4, this); } + + public void drawEyes(Color color) { + Graphics g = this.getGraphics(); + g.setColor(color); + g.fillOval(50, 50, 6, 3); + g.fillOval(62, 50, 6, 3); + } }