import javax.swing.*;

/*
 * Created on 17.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 LumiSoft.UI.Controls.*;

/**
 * 
 */
public class TestFrom extends JDialog {

	public static WText txt = null;
			
	public static void main(String[] args) 
	{				
	/*	String s = "815+15";
		System.out.println(s.indexOf("+"));
		System.out.println(s.substring(0,s.indexOf("+")));
		System.out.println(s.substring(s.indexOf("+") + 1));*/
		
	/*	JDialog dlg = new JDialog();
		dlg.setSize(800,600);
				
		WButton b = new WButton();
		b.setSize(100,22);
		b.setLocation(200,10);
		b.addClickedListener(new ActionListener(){
			public void actionPerformed(ActionEvent e){
				p.requestFocus();
			}
		});
		
//		JPanel p = new JPanel();
		p.setSize(200,50);
		p.setLocation(0,0);
		p.setLayout(null);
		p.setFocusable(true);
		
		WTextEdit t = new WTextEdit();
		t.setSize(100,20);
		t.setLocation(5,5);
		p.add(t);
		
		dlg.setLayout(null);
		dlg.add(p);
		dlg.add(b);
		dlg.setSize(400,300);
		dlg.setVisible(true);*/
		
	/*	te frm = new te();
		frm.setSize(300,300);
		frm.setVisible(true);*/
		
		String text = "";
/*		try{
			WText txt = new WText("d:\\WText.xml","RUS");
			
			System.out.println(txt.get("1430"));
		}
		catch(Exception x){
			x.printStackTrace();
		}*/
	
		//--- Create image lists		
		ImageList imageList = new ImageList(36,36);
		imageList.Add(Toolkit.getDefaultToolkit().getImage(TestFrom.class.getClassLoader().getResource("Images/inbox.gif")));
		
		ImageList imageListSmall = new ImageList(16,16);
		imageListSmall.Add(Toolkit.getDefaultToolkit().getImage(TestFrom.class.getClassLoader().getResource("Images/inboxs.gif")));
		//------------------------
			
		TestFrom frm = new TestFrom();		
		frm.getContentPane().setLayout(new BorderLayout());
		frm.getContentPane().add(new wctrl_Main(imageList,imageListSmall),BorderLayout.CENTER);
	//	frm.setSize(801,650);		
		frm.setSize(900,650);		
		frm.addWindowListener(new WindowAdapter(){
			public void windowClosing(WindowEvent event){
			   System.exit(0);
			}
		});
		frm.setVisible(true);
		frm.setTitle(text);
		
	/*	try{
			DataSet ds = new DataSet();
			ds.ReadXml("D:\\a.xml");
			System.out.println(ds.getTables().get("Detail").getRows().get(0).get(0));
		}
		catch(Exception x){
			x.printStackTrace();
		}
		*/
	}
}
