import javax.swing.*;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.geom.*;
public static void main(String[] args){
JFrame frame = [[new]] JFrame();
game0229 app = new game0229();
frame.getContentPane().add(app);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setBounds(10, 10, 300, 200);
frame.setTitle("[[タイトル]]");
frame.setVisible(true);
}
public void paintComponent(Graphics g){
Graphics2D g2 = (Graphics2D)g;
g2.draw(new Line2D.Double(20, 20, 160, 140));
}
}
最終更新:2011年02月17日 00:11