gt: 		JLabel lblIddevice = new JLabel("idDevice:");
context: package Interface;
  
  import java.awt.EventQueue;
  
  import javax.swing.JFrame;
  //import java.awt.GridBagLayout;
  //import java.awt.BorderLayout;
  //import javax.swing.BoxLayout;
  //import javax.swing.SpringLayout;
  import javax.swing.JPanel;
  import javax.swing.JLabel;
  //import javax.swing.SwingConstants;
  //import java.awt.FlowLayout;
  import javax.swing.JRadioButton;
  import javax.swing.JTextField;
  //import com.jgoodies.forms.layout.FormLayout;
  //import com.jgoodies.forms.layout.ColumnSpec;
  //import com.jgoodies.forms.factories.FormFactory;
  //import com.jgoodies.forms.layout.RowSpec;
  import javax.swing.GroupLayout;
  import javax.swing.GroupLayout.Alignment;
  import javax.swing.LayoutStyle.ComponentPlacement;
  //import java.awt.Component;
  import javax.swing.Box;
  import javax.swing.JButton;
  import javax.swing.JSeparator;
  
  import java.awt.event.*;
  import javax.swing.*;
  //import java.awt.*;
  import java.io.*;
  import java.util.*;
  
  public class Gen {
  
  	private JFrame frmEhcArduinocodeGenerator;
  	private JTextField textField;
  	private JTextField textField_1;
  	private JTextField textField_2;
  	private JTextField textField_3;
  	private JTextField textField_4;
  	private JTextField textField_5;
  	private JTextField textField_6;
  	private JTextField textField_7;
  	private JTextField textField_8;
  	private JTextField textField_9;
  	private JTextField textField_10;
  	private JTextField textField_11;
  	private JTextField textField_12;
  	private JTextField textField_13;
  	private JTextField textField_14;
  	private JTextField textField_15;
  	private JTextField textField_16;
  	private JTextField textField_17;
  	private JTextField textField_18;
  	private JTextField textField_19;
  	
  	private boolean IR,lights, blinds, intercom, temp, motion, rain, lightSensor;
  	private JTextField textField_20;
  	private JTextField textField_21;
  	private JTextField textField_22;
  	private JTextField textField_23;
  	private JTextField textField_24;
  	private JTextField textField_25;
  	private JTextField textField_26;
  	private JTextField textField_27;
  
  	/**
  	 * Launch the application.
  	 */
  	public static void main(String[] args) {
  		EventQueue.invokeLater(new Runnable() {
  			public void run() {
  				try {
  					Gen window = new Gen();
  					window.frmEhcArduinocodeGenerator.setVisible(true);
  				} catch (Exception e) {
  					e.printStackTrace();
  				}
  			}
  		});
  	}
  
  	/**
  	 * Create the application.
  	 */
  	public Gen() {
  		IR = lights = blinds = intercom = temp =  motion = rain = lightSensor = false;
  		initialize();
  	}
  
  	/**
  	 * Initialize the contents of the frame.
  	 */
  	private void initialize() {
  		frmEhcArduinocodeGenerator = new JFrame();
  		frmEhcArduinocodeGenerator.setTitle("EHC Arduino-Code Generator");
  		frmEhcArduinocodeGenerator.setBounds(100, 100, 898, 662);
  		frmEhcArduinocodeGenerator.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  		
  		JPanel panel = new JPanel();
  		GroupLayout groupLayout = new GroupLayout(frmEhcArduinocodeGenerator.getContentPane());
  		groupLayout.setHorizontalGroup(
  			groupLayout.createParallelGroup(Alignment.LEADING)
  				.addComponent(panel, GroupLayout.DEFAULT_SIZE, 801, Short.MAX_VALUE)
  		);
  		groupLayout.setVerticalGroup(
  			groupLayout.createParallelGroup(Alignment.LEADING)
  				.addGroup(groupLayout.createSequentialGroup()
  					.addComponent(panel, GroupLayout.DEFAULT_SIZE, 557, Short.MAX_VALUE)
  					.addContainerGap())
  		);
  		
  		JLabel lblBienvenidoAlSistema = new JLabel("Bienvenido al sistema Generador de Codigo Arduino EHC");
  		
  		JRadioButton rdbtnControlIr = new JRadioButton("Control IR");
  		
  		JRadioButton rdbtnControlLuces = new JRadioButton("Control Luces");
  		
  		JRadioButton rdbtnPersianas = new JRadioButton("Persianas");
  		
  		JRadioButton rdbtnTelefonillo = new JRadioButton("Telefonillo");
  		
  		JRadioButton rdbtnTermostato = new JRadioButton("Termostato");
  		
  		JLabel lblSeleccioneLosServicios = new JLabel("Seleccione los servicios:");
  		
  		JLabel lblSeleccioneDirectorioDestino = new JLabel("Seleccione Directorio Destino:");
  		
  		textField = new JTextField();
  		textField.setColumns(10);
  		textField.setText("/home/hectorgpala/Test");
  		
  		JLabel lblSeleccionDePines = new JLabel("Seleccion de Pines:");
  		
  		JLabel lblLecturaIr = new JLabel("Lectura IR:");
  		
  		Box verticalBox = Box.createVerticalBox();
  		
  		JLabel lblReleLuces = new JLabel("Rele Luces:");
  		
  		JButton btnGenerar = new JButton("Generar!");
  		
  		JRadioButton rdbtnSensorMovimiento = new JRadioButton("Sensor Movimiento");
  		
  		JRadioButton rdbtnSensorLluvia = new JRadioButton("Sensor Lluvia");
  		
  		JRadioButton rdbtnSensorLuz = new JRadioButton("Sensor Luz");
  		
  		JLabel lblPersianas = new JLabel("Persianas:");
  		
  		JLabel lblTelefonillo = new JLabel("Telefonillo:");
  		
  		JLabel lblTermostato = new JLabel("Termostato:");
  		
  		JLabel lblMovimiento = new JLabel("Movimiento:");
  		
  		JLabel lblLluvia = new JLabel("Lluvia:");
  		
  		textField_1 = new JTextField();
  		textField_1.setColumns(10);
  		textField_1.setText("2");
  		textField_1.setToolTipText("Pin de entrada DIGITAL");
  		
  		textField_2 = new JTextField();
  		textField_2.setColumns(10);
  		textField_2.setText("4");
  		textField_2.setToolTipText("Pin de salida DIGITAL");
  		
  		textField_3 = new JTextField();
  		textField_3.setColumns(10);
  		textField_3.setText("9");
  		textField_3.setToolTipText("Pin DIGITAL");
  		
  		textField_4 = new JTextField();
  		textField_4.setColumns(10);
  		textField_4.setText("13");
  		textField_4.setToolTipText("Salida a cerradura PIN DIGITAL");
  		
  		textField_5 = new JTextField();
  		textField_5.setColumns(10);
  		textField_5.setText("A0");
  		textField_5.setToolTipText("Pin de entrada Analogico");
  		
  		textField_6 = new JTextField();
  		textField_6.setColumns(10);
  		textField_6.setText("10");
  		textField_6.setToolTipText("Pin DIGITAL");
  		
  		textField_7 = new JTextField();
  		textField_7.setColumns(10);
  		textField_7.setText("A1");
  		textField_7.setToolTipText("Pin de entrada Analogico");
  		
  		textField_8 = new JTextField();
  		textField_8.setColumns(10);
  		textField_8.setText("7");
  		textField_8.setToolTipText("Pin de entrada DIGITAL");
  		
  		textField_9 = new JTextField();
  		textField_9.setColumns(10);
  		textField_9.setText("A2");
  		textField_9.setToolTipText("Pin de entrada Analogico");
  		
  		JLabel lblLuz = new JLabel("Luz:");
  		
  		JSeparator separator = new JSeparator();
  		
  		JSeparator separator_1 = new JSeparator();
  		
  		JSeparator separator_2 = new JSeparator();
  		
  		textField_10 = new JTextField();
  		textField_10.setColumns(10);
  		
  		textField_11 = new JTextField();
  		textField_11.setColumns(10);
  		
  		textField_12 = new JTextField();
  		textField_12.setColumns(10);
  		
  		textField_13 = new JTextField();
  		textField_13.setColumns(10);
  		
  		textField_14 = new JTextField();
  		textField_14.setColumns(10);
  		
  		textField_15 = new JTextField();
  		textField_15.setColumns(10);
  		
  		textField_16 = new JTextField();
  		textField_16.setColumns(10);
  		
  		textField_17 = new JTextField();
  		textField_17.setColumns(10);
  		
  		JLabel lblIdservice = new JLabel("idService");
  		
  		JLabel lblNombreHabitacion = new JLabel("Nombre Habitacion:");
  		
  		textField_18 = new JTextField();
  		textField_18.setColumns(10);
  		
  