
import javax.swing.*;
import ch.abacus.lib.ui.renderer.common.jdbc.JSSDataSource;
import ch.abacus.lib.ui.renderer.common.jdbc.JSSTextField;
import ch.abacus.lib.ui.renderer.abaRenderer.AbaRenderer;
import ch.abacus.lib.ui.*;

import java.io.*;
import java.awt.*;
import java.awt.event.MouseListener;
import java.awt.event.MouseEvent;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.*;
import java.awt.event.MouseListener;
import java.awt.event.MouseEvent;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;


public class  execcustomer
{
	private static JLabel JLabel1;
	private static JLabel JLabel2;
	private static JLabel JLabel3;
	private static JLabel JLabel4;
	private static JLabel JLabel5;
	private static JLabel JLabel6;
	private static JLabel JLabel7;
	private static JLabel JLabel8;
	private static JComboBox JComboBox1;
	private static JTextField JTextField1;
	private static JTextField JTextField2;
	private static JTextField JTextField3;
	private static JTextField JTextField4;
	private static JTextField JTextField5;
	private static JTextField JTextField6;
	private static JButton JButton1;
	private static JButton JButton2;
	
	public static AbaRenderer  m_AbaRenderer ;
// Assignments for this user interface

    public static void getReferences()
    {
	JLabel1 = (JLabel) m_AbaRenderer.getObject("JLabel1");
	JLabel2 = (JLabel) m_AbaRenderer.getObject("JLabel2");
	JLabel3 = (JLabel) m_AbaRenderer.getObject("JLabel3");
	JLabel4 = (JLabel) m_AbaRenderer.getObject("JLabel4");
	JLabel5 = (JLabel) m_AbaRenderer.getObject("JLabel5");
	JLabel6 = (JLabel) m_AbaRenderer.getObject("JLabel6");
	JLabel7 = (JLabel) m_AbaRenderer.getObject("JLabel7");
	JLabel8 = (JLabel) m_AbaRenderer.getObject("JLabel8");
	JComboBox1 = (JComboBox) m_AbaRenderer.getObject("JComboBox1");
	JTextField1 = (JTextField) m_AbaRenderer.getObject("JTextField1");
	JTextField2 = (JTextField) m_AbaRenderer.getObject("JTextField2");
	JTextField3 = (JTextField) m_AbaRenderer.getObject("JTextField3");
	JTextField4 = (JTextField) m_AbaRenderer.getObject("JTextField4");
	JTextField5 = (JTextField) m_AbaRenderer.getObject("JTextField5");
	JTextField6 = (JTextField) m_AbaRenderer.getObject("JTextField6");
	JButton1 = (JButton) m_AbaRenderer.getObject("JButton1");
	JButton2 = (JButton) m_AbaRenderer.getObject("JButton2");
    }

    public static void main(String[] args)
    {
		
	String docname = new String(args[0]);

	    try
        {
            m_AbaRenderer = new AbaRenderer(docname, true , null);
            boolean bTestLoad = m_AbaRenderer.load();
            m_AbaRenderer.renderInterface();
	
	    getReferences();
	    
	    // Sample access to Objects
	    JComboBox1.addItem("FL");
	    JComboBox1.addItem("CA");
	    JComboBox1.addItem("WA");
	    JComboBox1.addItem("MD");
	    JComboBox1.addItem("PA");	 		
	    
	    // This is an example how to add a listernet at runtime. If choose to do so!
	    // Otherwise you can use the GUI
            JButton1.addActionListener(
                new ActionListener() {
                    public void actionPerformed(ActionEvent e) {

                    }
                }
            );

           JButton2.addActionListener(
              new ActionListener() {
                     public void actionPerformed(ActionEvent e) {
			Runtime.getRuntime().exit(1);
                      }
                 }
           );	
            
        }
        catch(Exception e)
        {
           e.printStackTrace();
        }
    }

    
}




