yramu 0 Newbie Poster

Hi all,

Here i pasted some code,

In that i added to images to container but it is displaying the last one only, and one more thing is how to set the boundaries for jbutton, TextArea and Image.

I need the code of count down timer.

Thanks in Advance...............

import javax.swing.JWindow;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;

public class checking extends JWindow
{
	Container container;
	static JButton jb = new JButton("Close");

	public static void main(String args[]) 
	{
		checking check = new checking();
		check.setSize(1280,800);
		check.setAlwaysOnTop(true);
		check.setVisible(true);
		
	}
	checking() 
	{
		container = getContentPane();
		container.setLayout(new BorderLayout());

		JPanel pan = new JPanel();

		JPanel side = new JPanel();
		//side.setPreferredSize(new Dimension(900, 400));
		ImageIcon icon1 = new ImageIcon ("rgu.png");
		side.add(new JLabel(icon1));

	        container.add(side);

		ClockLabel clock = new ClockLabel();
		container.add(clock,BorderLayout.NORTH);

		jb.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				System.exit(0);
			}
		});

		jb.setBounds(550,750,80,30);
		jb.setPreferredSize(new Dimension(10, 30));
		container.add(jb, BorderLayout.SOUTH);
		jb.setMaximumSize(new Dimension(30,30));
		ImageIcon icon2 = new ImageIcon ("apiiit2.jpg");
		
                JScrollPane sp=new JScrollPane();
		JScrollPane jsp = new JScrollPane(new JLabel(icon2));
		container.add(jsp,BorderLayout.CENTER);	
		
		}
}