import javax.swing.*;
import java.awt.*;
public class exa9_11{
  public static void main(String [] args) {
    JFrame f=new JFrame("Hello!");
    f.setLocation(10,100);
    f.setSize(600,400);
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);  		//ùرմ
    JButton ja = new JButton("Ok");                     		//ıİť
    JButton jb = new JButton(new ImageIcon("logo.gif"));   			//ͼİť
JButton jc = new JButton("Java logo",new ImageIcon("logo.gif"));	//ıͼİť
f.setLayout(new FlowLayout());   //ʽ
    f.getContentPane().add(ja);
    f.getContentPane().add(jb);
    f.getContentPane().add(jc);  
    f.setVisible(true);
  }
}
