////////import java.awt.*;
////////import javax.swing.*;
////////import java.awt.event.*;
////////import java.util.Calendar;
////////public class Main extends JFrame{
//////// Main(){
//////// setTitle("디지털 시계 만들기");
//////// setDefaultCloseOperation(EXIT_ON_CLOSE);
//////// Container c=getContentPane();
//////// setSize(400, 400);
//////// MyThread th=new MyThread();
//////// c.add(th);
//////// setVisible(true);
////////
//////// }
//////// class MyThread extends JLabel implements Runnable{
//////// Thread timeThread;
//////// public String time(){
//////// Calendar c=Calendar.getInstance();
//////// int hour=c.get(Calendar.HOUR_OF_DAY);
//////// int min=c.get(Calendar.MINUTE);
//////// int second=c.get(Calendar.SECOND);
////////
//////// String clockText=Integer.toString(hour);
//////// clockText=clockText.concat(":");
//////// clockText=clockText.concat(Integer.toString(min));
//////// clockText=clockText.concat(":");
//////// clockText=clockText.concat(Integer.toString(second));
//////// return clockText;
//////// }
//////// MyThread(){
//////// setText(time());
//////// setHorizontalAlignment(JLabel.CENTER);
//////// setFont(new Font("Arial", Font.PLAIN, 50));
//////// timeThread=new Thread(this);
//////// timeThread.start();
//////// System.out.println("VVV");
//////// }
//////// public void run() {
//////// while(true){
//////// System.out.println(".");
//////// try {
//////// Thread.sleep(1);
//////// }
//////// catch (Exception e) {
//////// // TODO: handle exception
//////// System.out.println("TTT");
//////// }
//////// finally {
//////// setText(time());
//////// System.out.println("XXX");
//////// }
//////// }
////////
//////// }
//////// }
////////
//////// public static void main(String[] args) {
//////// new Main();
//////// }
////////
////////}
////////
//////import javax.swing.*;
//////import java.awt.*;
//////import java.awt.event.*;
//////public class Main extends JFrame{
////// Main(){
////// setTitle("진동하는 프레임 만들기");
////// setDefaultCloseOperation(EXIT_ON_CLOSE);
////// MyThread th=new MyThread(this);
////// setSize(400, 400);
////// setVisible(true);
////// }
//////class MyThread extends JFrame implements Runnable{
////// Thread moveThread;
////// JFrame myFrame;
////// int x=300;
////// int y=300;
////// MyThread(JFrame me){
////// myFrame=me;
////// setLocation(x, y);
////// moveThread=new Thread();
////// moveThread.start();
////// }
////// public void run() {
////// for(;;) {
////// try {
////// Thread.sleep(1000);
////// if(x==300) {
////// x+=10000;
////// }
////// else {
////// x-=10000;
////// }
////// setLocation(x, y);
////// } catch (Exception e) {
////// // TODO: handle exception
////// }
////// }
////// }
////// }
////// public static void main(String[] args) {
////// new Main();
////// }
//////
////import javax.swing.*;
////import java.awt.*;
////import java.awt.event.*;
////public class Main extends JFrame{
//// Main(){
//// setTitle("진동하는 프레임 만들기");
//// setDefaultCloseOperation(EXIT_ON_CLOSE);
//// setSize(400,400);
//// MyThread th=new MyThread(this);
//// th.start();
//// setVisible(true);
////
//// }
//// class MyThread extends Thread{
//// int x=300;
//// int y=300;
//// JFrame MyFrame;
//// MyThread(JFrame frame){
//// MyFrame=frame;
//// MyFrame.setLocation(x, y);
////
//// }
//// public void run() {
//// for(;;) {
//// try {
//// Thread.sleep(10);
//// if(x==300) {
//// x+=300;
//// }
//// else {
//// x-=300;
//// }
//// MyFrame.setLocation(x,y);
//// } catch (Exception e) {
//// // TODO: handle exception
//// }
//// }
//// }
//// }
//// public static void main(String[] args) {
//// new Main();
//// }
////}
//import java.awt.*;
//import javax.swing.*;
//import java.awt.event.*;
//public class Main extends JFrame{
// Main(){
// setTitle("진동하는 레이블 만들기");
// setSize(4000, 4000);
// setDefaultCloseOperation(EXIT_ON_CLOSE);
// MyTheard th=new MyTheard();
// Container c=getContentPane();
// c.add(th);
// setVisible(true);
// }
// class MyTheard extends JLabel implements Runnable{
// Thread ex2;
// int x=200;
// int y=200;
// MyTheard() {
// // TODO Auto-generated constructor stub
// setText("a");
//
// setFont(new Font("Arial",Font.PLAIN,50));
// ex2=new Thread(this);
// ex2.start();
// }
//
//
// public void run() {
// for(;;){try {
// Thread.sleep(100);
// if(x==200) {
// x+=200;
// }
// else {
// x-=200;
// }
// setLocation(x, y);
// } catch (Exception e) {
// // TODO: handle exception
// }
// }
// }
// }
// public static void main(String[] args) {
// new Main();
// }
//}
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
public class Main extends JFrame{
ImageIcon chiken=new ImageIcon("닭.png");
ImageIcon bullet=new ImageIcon("총알.png");
ImageIcon fire=new ImageIcon("발사대.png");
Label chikens;
Label bullets;
Label fires;
Main(){
setTitle("사격 게임");
Container c=getContentPane();
setSize(1000, 1000);
setVisible(true);
setDefaultCloseOperation(EXIT_ON_CLOSE);
chikens;
}
}