画我有我的类中声明:在一个JPanel
public class myRightPanel extends JPanel
然后我覆盖paintComponent我的超类的这样的:
public void paintComponent(Graphics g){
super.paintComponents(g);
//Draw bunch of things here
}
现在事实证明我还需要这需要一种方法在两个整数(x,y)参数中添加一些东西到我已经在该坐标处绘制的myRightPanel
。当我已经覆盖我的paintComponent()
时,我该怎么做?
1)[tag:eclipse],[tag:netbeans]和[tag:jdk]究竟做了什么? 2)为了更快地获得更好的帮助,请发布[SSCCE](http://sscce.org/)。 –
你是否忽略了我对标签的评论? –