| 
 
| import java.awt.*; public class star
 {
 public static void main(String args[])
 {
 Frame w = new Frame();
 w.setSize(1366,768);
 w.setBackground(Color.BLACK);
 
 MyPanel1 mp = new MyPanel1();
 w.add(mp);
 
 w.setVisible(true);
 }
 
 }
 
 class MyPanel1 extends Panel
 {
 public void paint(Graphics g)
 {
 
 while(true)
 {
 for(int i=0;i<400;i++)
 {
 g.setColor(Color.white);
 Font f = new Font("",Font.BOLD,50);
 g.setFont(f);
 g.drawString("*",(int)(1366*Math.random()),(int)(768*Math.random()));
 g.setColor(Color.black);
 g.fillOval(50,50,80,80);
 g.fillOval(50,200,80,80);
 g.fillOval(50,350,80,80);
 g.fillOval(50,500,80,80);
 Font h=new Font("",Font.BOLD,50);
 g.setFont(h);
 g.drawString("我可以追你吗?",400,400);
 g.setFont(h);
 g.drawString("见到你第一眼就喜欢上你了",300,200);
 }
 }
 }
 }
 
 
 我要打成jar包,结果不行,咋办?
 | 
 |