编译显示 javac:无效的标记:extends
importjava.awt.*;importjavax.swing.*;classMyDrawPanelextendsJPanel{publicvoidpaintCom...
import java.awt.*;
import javax.swing.*;
class MyDrawPanel extends JPanel
{
public void paintComponent (Graphics g)
{
g.setColor (Color.orange);
g.filllrect(20,50.100,100);
}
}B implements ActionListener
{ 展开
import javax.swing.*;
class MyDrawPanel extends JPanel
{
public void paintComponent (Graphics g)
{
g.setColor (Color.orange);
g.filllrect(20,50.100,100);
}
}B implements ActionListener
{ 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询