I've got somePanel1
, somePanel2
, and somePanel3
instantiated within someFrame
.
If I do a drawString
in somePanel
form, how can I get the output to be different in somePanel1
, somePanel2
, and somePanel3
.
For instance g.drawString("X", x, y);
puts an X
in all three somePanel
s. How do I get:
somePanel1
to outputX
,somePanel2
to outputY
, andsomePanel3
to outputZ
?