/*
 * Created on 19.12.2003
 *
 * To change the template for this generated file go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */

import java.awt.*;
//import java.awt.event.*;
import javax.swing.*;
import LumiSoft.UI.Controls.*;

import java.net.*;

/**
 * @author Ivar
 *
 * To change the template for this generated type comment go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */
public class TestApplet extends JApplet 
{
	public void init()
	{		
		try{
			javax.swing.SwingUtilities.invokeAndWait(new Runnable() {
				public void run() {
					createGUI();
				}
			});
		} 
		catch (Exception e) {
			System.err.println("createGUI didn't successfully complete");
		}

	}
	
	private void createGUI()
	{	
		try{
			ImageList imageList = new ImageList(36,36);
			imageList.Add(new URL(getCodeBase(),"inbox.gif"));
			
			ImageList imageListSmall = new ImageList(16,16);
			imageListSmall.Add(new URL(getCodeBase(),"inboxs.gif"));
					
			this.getContentPane().setLayout(new BorderLayout());
			this.getContentPane().add(new wctrl_Main(imageList,imageListSmall),BorderLayout.CENTER);
		}
		catch(Exception x){	
			System.out.println(x.getMessage());
		}
	}
	
}
