as400FieldP = new JPanel();  AlignLayout as400fLayout = new AlignLayout(); as400FieldP.setLayout(as400fLayout);
	private void initXTFRInfo() {		// create some reusable borders and layouts		BorderLayout borderLayout = new BorderLayout();		Border emptyBorder = BorderFactory.createEmptyBorder(10, 10, 0, 10);		// main panel		JPanel mp = new JPanel();		mp.setLayout(borderLayout);		// system panel		JPanel sp = new JPanel();		sp.setLayout(new BorderLayout());		sp.setBorder(emptyBorder);		// host panel for as400		as400p = new JPanel();		as400p.setBorder(			BorderFactory.createTitledBorder(				LangTool.getString("xtfr.labelAS400")));		as400p.setLayout(new GridBagLayout());		JLabel snpLabel =			new JLabel(LangTool.getString("xtfr.labelSystemName"));		systemName = new JTextField(vt.getHostName());		systemName.setColumns(30);		gbc = new GridBagConstraints();		gbc.gridx = 0; gbc.gridy =0;		gbc.anchor = GridBagConstraints.WEST;		gbc.insets = new Insets(5, 10, 5, 5);		as400p.add(snpLabel, gbc);		gbc = new GridBagConstraints();		gbc.gridx = 1; gbc.gridy = 0;		gbc.gridwidth = 2;				gbc.anchor = GridBagConstraints.WEST;		gbc.insets = new Insets(5, 5, 5, 10);		as400p.add(systemName,gbc);		JLabel hfnpLabel = new JLabel(LangTool.getString("xtfr.labelHostFile"));		gbc = new GridBagConstraints();		gbc.gridx = 0; gbc.gridy = 1;		gbc.anchor = GridBagConstraints.WEST;		gbc.insets = new Insets(5, 10, 5, 5);		as400p.add(hfnpLabel, gbc);		hostFile = new JTextField();		hostFile.setColumns(30);		gbc = new GridBagConstraints();		gbc.gridx = 1; gbc.gridy = 1;		gbc.gridwidth = 2;		gbc.anchor = GridBagConstraints.WEST;		gbc.insets = new Insets(5, 5, 5, 10);				as400p.add(hostFile, gbc);		JLabel idpLabel = new JLabel(LangTool.getString("xtfr.labelUserId"));		gbc = new GridBagConstraints();		gbc.gridx = 0; gbc.gridy = 2;		gbc.anchor = GridBagConstraints.WEST;		gbc.insets = new Insets(5, 10, 5, 5);		as400p.add(idpLabel, gbc);		user = new JTextField();		user.setColumns(15);		gbc = new GridBagConstraints();		gbc.gridx = 1; gbc.gridy = 2;		gbc.anchor = GridBagConstraints.WEST;		gbc.insets = new Insets(5, 5, 5, 5);						as400p.add(user, gbc);		// password panel		JLabel pwpLabel = new JLabel(LangTool.getString("xtfr.labelPassword"));		gbc = new GridBagConstraints();		gbc.gridx = 0; gbc.gridy = 3;		gbc.anchor = GridBagConstraints.WEST;		gbc.insets = new Insets(5, 10, 5, 5);		as400p.add(pwpLabel, gbc);		password = new JPasswordField();		password.setColumns(15);		gbc = new GridBagConstraints();		gbc.gridx = 1; gbc.gridy = 3;		gbc.anchor = GridBagConstraints.WEST;		gbc.insets = new Insets(5, 5, 5, 5);				as400p.add(password, gbc);		// Query Wizard		useQuery = new JCheckBox(LangTool.getString("xtfr.labelUseQuery"));		useQuery.addItemListener(this);		gbc = new GridBagConstraints();		gbc.gridx = 0; gbc.gridy = 4;		gbc.anchor = GridBagConstraints.WEST;		gbc.insets = new Insets(5, 10, 5, 5);				as400p.add(useQuery, gbc);		//query button		queryWizard = new JButton(LangTool.getString("xtfr.labelQueryWizard"));		queryWizard.addActionListener(new java.awt.event.ActionListener() {			public void actionPerformed(ActionEvent e) {				startWizard();			}		});		queryWizard.setEnabled(false);		gbc = new GridBagConstraints();		gbc.gridx = 1; gbc.gridy = 4;		gbc.anchor = GridBagConstraints.WEST;		gbc.fill = GridBagConstraints.HORIZONTAL;		gbc.insets = new Insets(0, 5, 0, 5);				as400p.add(queryWizard, gbc);		// Field Selection panel		JLabel fieldsLabel = new JLabel(LangTool.getString("xtfr.labelFields"));		gbc = new GridBagConstraints();		gbc.gridx = 0; gbc.gridy = 5;		gbc.anchor = GridBagConstraints.WEST;		gbc.insets = new Insets(5, 10, 5, 5);		as400p.add(fieldsLabel, gbc);		allFields = new JRadioButton(LangTool.getString("xtfr.labelAllFields"));		allFields.setSelected(true);		gbc = new GridBagConstraints();		gbc.gridx = 1; gbc.gridy = 5;		gbc.anchor = GridBagConstraints.CENTER;		gbc.insets = new Insets(0, 5, 0, 5);		as400p.add(allFields, gbc);				selectedFields =			new JRadioButton(LangTool.getString("xtfr.labelSelectedFields"));		gbc = new GridBagConstraints();		gbc.gridx = 2; gbc.gridy = 5;		gbc.anchor = GridBagConstraints.CENTER;		gbc.insets = new Insets(0, 5, 0, 10);		as400p.add(selectedFields, gbc);						ButtonGroup fieldGroup = new ButtonGroup();		fieldGroup.add(allFields);		fieldGroup.add(selectedFields);		// Field Text Description panel		JLabel textDescLabel =			new JLabel(LangTool.getString("xtfr.labelTxtDesc"));		gbc = new GridBagConstraints();		gbc.gridx = 0; gbc.gridy = 6;		gbc.anchor = GridBagConstraints.WEST;		gbc.insets = new Insets(5, 10, 5, 5);		as400p.add(textDescLabel, gbc);		txtDesc = new JRadioButton(LangTool.getString("xtfr.labelTxtDescFull"));		txtDesc.setSelected(true);		gbc = new GridBagConstraints();		gbc.gridx = 1; gbc.gridy = 6;		gbc.anchor = GridBagConstraints.CENTER;		gbc.insets = new Insets(0, 5, 5, 5);		as400p.add(txtDesc, gbc);				intDesc = new JRadioButton(LangTool.getString("xtfr.labelTxtDescInt"));		gbc = new GridBagConstraints();		gbc.gridx = 2; gbc.gridy = 6;		gbc.anchor = GridBagConstraints.CENTER;		gbc.insets = new Insets(0, 5, 5, 10);		as400p.add(intDesc, gbc);			ButtonGroup txtDescGroup = new ButtonGroup();		txtDescGroup.add(txtDesc);		txtDescGroup.add(intDesc);		// pc panel for pc information		JPanel pcp = new JPanel(new GridBagLayout());		pcp.setBorder(			BorderFactory.createTitledBorder(				LangTool.getString("xtfr.labelpc")));		JLabel pffLabel =			new JLabel(LangTool.getString("xtfr.labelFileFormat"));		gbc = new GridBagConstraints();		gbc.gridx = 0; gbc.gridy = 0;		gbc.anchor = GridBagConstraints.WEST;		gbc.insets = new Insets(5, 10, 5, 5);		pcp.add(pffLabel, gbc);		fileFormat = new JComboBox();		fileFormat.setPreferredSize(new Dimension(220, 25));		fileFormat.addItem(htmlFilter.getDescription());		fileFormat.addItem(OOFilter.getDescription());		fileFormat.addItem(ExcelFilter.getDescription());		fileFormat.addItem(KSpreadFilter.getDescription());		fileFormat.addItem(DelimitedFilter.getDescription());		fileFormat.addItem(FixedWidthFilter.getDescription());		fileFormat.addActionListener(new ActionListener() {			public void actionPerformed(ActionEvent e) {				JComboBox cb = (JComboBox) e.getSource();				filter = getFilterByDescription();				if (filter.getOutputFilterInstance().isCustomizable())					customize.setEnabled(true);				else					customize.setEnabled(false);			}		});		gbc = new GridBagConstraints();		gbc.gridx = 1; gbc.gridy = 0;		gbc.anchor = GridBagConstraints.WEST;		gbc.insets = new Insets(0, 5, 0, 5);		pcp.add(fileFormat, gbc);		customize = new JButton(LangTool.getString("xtfr.labelCustomize"));		customize.setPreferredSize(new Dimension(110, 25));		customize.setActionCommand("CUSTOMIZE");		customize.addActionListener(this);		gbc = new GridBagConstraints();		gbc.gridx = 2; gbc.gridy = 0;		gbc.anchor = GridBagConstraints.WEST;		gbc.insets = new Insets(0, 5, 0, 10);		pcp.add(customize, gbc);		// now make sure we set the customizable button enabled or not		// depending on the filter.		fileFormat.setSelectedIndex(0);		JLabel pcpLabel = new JLabel(LangTool.getString("xtfr.labelPCFile"));		gbc = new GridBagConstraints();		gbc.gridx = 0; gbc.gridy = 1;		gbc.anchor = GridBagConstraints.WEST;		gbc.insets = new Insets(5, 10, 5, 5);		pcp.add(pcpLabel, gbc);		localFile = new JTextField();		localFile.setColumns(15);		gbc = new GridBagConstraints();		gbc.gridx = 1; gbc.gridy = 1;		gbc.anchor = GridBagConstraints.WEST;		gbc.fill = GridBagConstraints.HORIZONTAL;		gbc.insets = new Insets(0, 5, 0, 5);		pcp.add(localFile, gbc);		JButton browsePC =			new JButton(LangTool.getString("xtfr.labelPCBrowse"));		browsePC.setActionCommand("BROWSEPC");		browsePC.addActionListener(this);		browsePC.setPreferredSize(new Dimension(110, 25));		gbc = new GridBagConstraints();		gbc.gridx = 2; gbc.gridy = 1;		gbc.anchor = GridBagConstraints.WEST;		gbc.fill = GridBagConstraints.HORIZONTAL;		gbc.insets = new Insets(0, 5, 0, 10);		pcp.add(browsePC, gbc);		decimalSeparator = new JComboBox();		decimalSeparator.setPreferredSize(new Dimension(220, 25));		decimalSeparator.addItem(LangTool.getString("xtfr.period"));		decimalSeparator.addItem(LangTool.getString("xtfr.comma"));		// obtain the decimal separator for the machine locale		DecimalFormat formatter =			(DecimalFormat) NumberFormat.getInstance(Locale.getDefault());		if (formatter.getDecimalFormatSymbols().getDecimalSeparator() == '.')			decimalSeparator.setSelectedIndex(0);		else			decimalSeparator.setSelectedIndex(1);		gbc = new GridBagConstraints();		gbc.gridx = 0; gbc.gridy = 2;		gbc.anchor = GridBagConstraints.WEST;		gbc.insets = new Insets(5, 10, 10, 5);		pcp.add(new JLabel(LangTool.getString("xtfr.labelDecimal")), gbc);		gbc = new GridBagConstraints();		gbc.gridx = 1; gbc.gridy = 2;		gbc.anchor = GridBagConstraints.WEST;		gbc.fill = GridBagConstraints.HORIZONTAL;		gbc.insets = new Insets(0, 5, 5, 5);		pcp.add(decimalSeparator, gbc);				sp.add(as400p, BorderLayout.NORTH);		sp.add(pcp, BorderLayout.SOUTH);		// options panel		JPanel op = new JPanel(new FlowLayout(FlowLayout.CENTER, 10, 10));		JButton xtfrButton = new JButton(LangTool.getString("xtfr.labelXTFR"));		xtfrButton.addActionListener(this);		xtfrButton.setActionCommand("XTFR");		op.add(xtfrButton);		JButton emailButton =			new JButton(LangTool.getString("xtfr.labelXTFREmail"));		emailButton.addActionListener(this);		emailButton.setActionCommand("EMAIL");		op.add(emailButton);		mp.add(sp, BorderLayout.CENTER);		mp.add(op, BorderLayout.SOUTH);		this.getContentPane().add(mp, BorderLayout.CENTER);		//      this.setModal(false);		//      this.setModal(true);		this.setTitle(LangTool.getString("xtfr.title"));		initXTFRFields();		// pack it and center it on the screen		pack();		Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();		Dimension frameSize = getSize();		if (frameSize.height > screenSize.height)			frameSize.height = screenSize.height;		if (frameSize.width > screenSize.width)			frameSize.width = screenSize.width;		setLocation(			(screenSize.width - frameSize.width) / 2,			(screenSize.height - frameSize.height) / 2);					//QueryPanel when Use Query selected		as400QueryP = new JPanel();		as400QueryP.setLayout(new BorderLayout());		queryStatement = new JTextArea(5, 40);		JScrollPane scrollPane = new JScrollPane(queryStatement);		queryStatement.setLineWrap(true);		as400QueryP.add(scrollPane, BorderLayout.CENTER);		as400FieldP = new JPanel();		AlignLayout as400fLayout = new AlignLayout();		as400FieldP.setLayout(as400fLayout);					// now show the world what we can do		show();	}