i have my class declared:
public class myRightPanel extends JPanel
then i override the paintComponent of my super class like this:
public void paintComponent(Graphics g){
super.paintComponents(g);
//Draw bunch of things here
}
Now it turns out i also need a method which takes in two integer(x,y) parameters and adds something to my already drawn myRightPanel
at that coordinates. How do i do this when i have already overridden my paintComponent()
?