如何解决报错?
import java.awt.;
import javax.swing.;
import java.util.Scanner;
import java.util.Scanner;
class Boat{
int x_axis,y_axis;
int radiation1=100,radiation2=150;
float speed;
public Boat(){
Scanner bx=new Scanner(System.in);
x_axis=bx.nextInt();
y_axis=bx.nextInt();
}
}
class mypanel extends JPanel{
Boat boat=new Boat();
boat.Boat();
@Override
public void paint(Graphics g){
super.paint(g);
g.setColor(Color.blue);
g.drawOval(boat.x_axis-boat.radiation1,boat.y_axis-boat.radiation1,boat.radiation12,boat.radiation12);
g.setColor(Color.red);
g.drawOval(boat.x_axis-boat.radiation2,boat.y_axis-boat.radiation2,boat.radiation22,boat.radiation22);
}
}
public class drawCircle extends JFrame{
public static void main(String[] args){
new drawCircle();
}
public drawCircle(){
mypanel mp = new mypanel();
this.add(mp);
this.setSize(1000,800);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setVisible(true);
}
}