import javax.swing.*;

public class WhileLoopGui
{
	public static void main(String[] args)
	{
		int i = 1;
		while(i <= 10)
		{
			JOptionPane.showMessageDialog(
				null, i);
			i++;
		}
		System.exit(0);
	}
}