BorderLayout borderLayout = new BorderLayout(); Border etchedBorder = BorderFactory.createEtchedBorder();   JPanel mp = new JPanel(); mp.setLayout(borderLayout);   JPanel sp = new JPanel(); sp.setLayout(new BorderLayout()); sp.setBorder(etchedBorder);   as400p = new JPanel(); as400p.setBorder(BorderFactory.createTitledBorder( LangTool.getString("xtfr.labelAS400")));  as400p.setLayout(new BorderLayout());  JPanel as400HostP = new JPanel();  AlignLayout as400pLayout = new AlignLayout(); as400HostP.setLayout(as400pLayout);   JLabel snpLabel = new JLabel(LangTool.getString("xtfr.labelSystemName"));  systemName = new JTextField(vt.getHostName()); systemName.setColumns(30);  as400HostP.add(snpLabel); as400HostP.add(systemName);   JLabel hfnpLabel = new JLabel(LangTool.getString("xtfr.labelHostFile")); hostFile = new JTextField(); hostFile.setColumns(30);  as400HostP.add(hfnpLabel); as400HostP.add(hostFile);   JLabel idpLabel = new JLabel(LangTool.getString("xtfr.labelUserId"));  user = new JTextField(); user.setColumns(15); as400HostP.add(idpLabel); as400HostP.add(user);   JLabel pwpLabel = new JLabel(LangTool.getString("xtfr.labelPassword"));  password = new JPasswordField(); password.setColumns(15);  as400HostP.add(pwpLabel); as400HostP.add(password);   useQuery = new JCheckBox(LangTool.getString("xtfr.labelUseQuery")); queryWizard = new JButton(LangTool.getString("xtfr.labelQueryWizard"));  queryWizard.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { startWizard(); } });  queryWizard.setEnabled(false);  useQuery.addItemListener(this);  as400HostP.add(useQuery); as400HostP.add(queryWizard);  as400p.add(as400HostP,BorderLayout.CENTER);  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);   JLabel fieldsLabel = new JLabel(LangTool.getString("xtfr.labelFields"));  allFields = new JRadioButton(LangTool.getString("xtfr.labelAllFields")); allFields.setSelected(true); selectedFields = new JRadioButton(LangTool.getString("xtfr.labelSelectedFields")); JPanel fgPanel = new JPanel(); ButtonGroup fieldGroup = new ButtonGroup();  fieldGroup.add(allFields); fieldGroup.add(selectedFields);  as400FieldP.add(fieldsLabel); fgPanel.add(allFields); fgPanel.add(selectedFields); as400FieldP.add(fgPanel);   JLabel textDescLabel = new JLabel(LangTool.getString("xtfr.labelTxtDesc"));  txtDesc = new JRadioButton(LangTool.getString("xtfr.labelTxtDescFull")); txtDesc.setSelected(true); intDesc = new JRadioButton(LangTool.getString("xtfr.labelTxtDescInt")); JPanel tdPanel = new JPanel(); ButtonGroup txtDescGroup = new ButtonGroup();  txtDescGroup.add(txtDesc); txtDescGroup.add(intDesc);  as400FieldP.add(textDescLabel); tdPanel.add(txtDesc); tdPanel.add(intDesc); as400FieldP.add(tdPanel);  as400p.add(as400HostP,BorderLayout.CENTER); as400p.add(as400FieldP,BorderLayout.SOUTH);   JPanel pcp = new JPanel(); pcp.setBorder(BorderFactory.createTitledBorder( LangTool.getString("xtfr.labelpc")));  AlignLayout pcLayout = new AlignLayout(3,5,5);  pcp.setLayout(pcLayout);  JLabel pffLabel = new JLabel(LangTool.getString("xtfr.labelFileFormat")); fileFormat = new JComboBox();  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); } });  customize = new JButton(LangTool.getString("xtfr.labelCustomize")); customize.setActionCommand("CUSTOMIZE"); customize.addActionListener(this);    fileFormat.setSelectedIndex(0);  pcp.add(pffLabel); pcp.add(fileFormat); pcp.add(customize);  JLabel pcpLabel = new JLabel(LangTool.getString("xtfr.labelPCFile"));  localFile = new JTextField(); localFile.setColumns(30);  JButton browsePC = new JButton(LangTool.getString("xtfr.labelPCBrowse")); browsePC.setActionCommand("BROWSEPC"); browsePC.addActionListener(this);  pcp.add(pcpLabel); pcp.add(localFile); pcp.add(browsePC);  decimalSeparator = new JComboBox(); decimalSeparator.addItem(LangTool.getString("xtfr.period")); decimalSeparator.addItem(LangTool.getString("xtfr.comma"));   DecimalFormat formatter = (DecimalFormat)NumberFormat.getInstance(Locale.getDefault()) ;  if (formatter.getDecimalFormatSymbols().getDecimalSeparator() == '.') decimalSeparator.setSelectedIndex(0); else decimalSeparator.setSelectedIndex(1);  pcp.add(new JLabel(LangTool.getString("xtfr.labelDecimal"))); pcp.add(decimalSeparator);  sp.add(as400p,BorderLayout.NORTH); sp.add(pcp,BorderLayout.SOUTH);   JPanel op = new JPanel(); 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.setTitle(LangTool.getString("xtfr.title"));  initXTFRFields();   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);   show();  }
BorderLayout borderLayout = new BorderLayout(); Border emptyBorder = BorderFactory.createEmptyBorder(10, 10, 0, 10);   JPanel mp = new JPanel(); mp.setLayout(borderLayout);   JPanel sp = new JPanel(); sp.setLayout(new BorderLayout()); sp.setBorder(emptyBorder);   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);  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);  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);  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);  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);  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);   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);   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"));   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);   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.setTitle(LangTool.getString("xtfr.title"));  initXTFRFields();   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);   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);    show();  }
   private void initXTFRInfo() {      // create some reusable borders and layouts      BorderLayout borderLayout = new BorderLayout();      Border etchedBorder = BorderFactory.createEtchedBorder();      // main panel      JPanel mp = new JPanel();      mp.setLayout(borderLayout);      // system panel      JPanel sp = new JPanel();      sp.setLayout(new BorderLayout());      sp.setBorder(etchedBorder);      // host panel for as400      as400p = new JPanel();      as400p.setBorder(BorderFactory.createTitledBorder(                                    LangTool.getString("xtfr.labelAS400")));      as400p.setLayout(new BorderLayout());      JPanel as400HostP = new JPanel();      AlignLayout as400pLayout = new AlignLayout();      as400HostP.setLayout(as400pLayout);      // system name panel      JLabel snpLabel = new JLabel(LangTool.getString("xtfr.labelSystemName"));      systemName = new JTextField(vt.getHostName());      systemName.setColumns(30);      as400HostP.add(snpLabel);      as400HostP.add(systemName);      // host file name panel      JLabel hfnpLabel = new JLabel(LangTool.getString("xtfr.labelHostFile"));      hostFile = new JTextField();      hostFile.setColumns(30);      as400HostP.add(hfnpLabel);      as400HostP.add(hostFile);      // user id panel      JLabel idpLabel = new JLabel(LangTool.getString("xtfr.labelUserId"));      user = new JTextField();      user.setColumns(15);      as400HostP.add(idpLabel);      as400HostP.add(user);      // password panel      JLabel pwpLabel = new JLabel(LangTool.getString("xtfr.labelPassword"));      password = new JPasswordField();      password.setColumns(15);      as400HostP.add(pwpLabel);      as400HostP.add(password);      // Query Wizard      useQuery = new JCheckBox(LangTool.getString("xtfr.labelUseQuery"));      queryWizard = new JButton(LangTool.getString("xtfr.labelQueryWizard"));      queryWizard.addActionListener(new java.awt.event.ActionListener() {         public void actionPerformed(ActionEvent e) {            startWizard();         }      });      queryWizard.setEnabled(false);      useQuery.addItemListener(this);      as400HostP.add(useQuery);      as400HostP.add(queryWizard);      as400p.add(as400HostP,BorderLayout.CENTER);      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);      // Field Selection panel      JLabel fieldsLabel = new JLabel(LangTool.getString("xtfr.labelFields"));      allFields = new JRadioButton(LangTool.getString("xtfr.labelAllFields"));      allFields.setSelected(true);      selectedFields = new JRadioButton(LangTool.getString("xtfr.labelSelectedFields"));      JPanel fgPanel = new JPanel();      ButtonGroup fieldGroup = new ButtonGroup();      fieldGroup.add(allFields);      fieldGroup.add(selectedFields);      as400FieldP.add(fieldsLabel);      fgPanel.add(allFields);      fgPanel.add(selectedFields);      as400FieldP.add(fgPanel);      // Field Text Description panel      JLabel textDescLabel = new JLabel(LangTool.getString("xtfr.labelTxtDesc"));      txtDesc = new JRadioButton(LangTool.getString("xtfr.labelTxtDescFull"));      txtDesc.setSelected(true);      intDesc = new JRadioButton(LangTool.getString("xtfr.labelTxtDescInt"));      JPanel tdPanel = new JPanel();      ButtonGroup txtDescGroup = new ButtonGroup();      txtDescGroup.add(txtDesc);      txtDescGroup.add(intDesc);      as400FieldP.add(textDescLabel);      tdPanel.add(txtDesc);      tdPanel.add(intDesc);      as400FieldP.add(tdPanel);      as400p.add(as400HostP,BorderLayout.CENTER);      as400p.add(as400FieldP,BorderLayout.SOUTH);      // pc panel for pc information      JPanel pcp = new JPanel();      pcp.setBorder(BorderFactory.createTitledBorder(                                    LangTool.getString("xtfr.labelpc")));      AlignLayout pcLayout = new AlignLayout(3,5,5);      pcp.setLayout(pcLayout);      JLabel pffLabel = new JLabel(LangTool.getString("xtfr.labelFileFormat"));      fileFormat = new JComboBox();      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);         }      });      customize = new JButton(LangTool.getString("xtfr.labelCustomize"));      customize.setActionCommand("CUSTOMIZE");      customize.addActionListener(this);      // now make sure we set the customizable button enabled or not      // depending on the filter.      fileFormat.setSelectedIndex(0);      pcp.add(pffLabel);      pcp.add(fileFormat);      pcp.add(customize);      JLabel pcpLabel = new JLabel(LangTool.getString("xtfr.labelPCFile"));      localFile = new JTextField();      localFile.setColumns(30);      JButton browsePC = new JButton(LangTool.getString("xtfr.labelPCBrowse"));      browsePC.setActionCommand("BROWSEPC");      browsePC.addActionListener(this);      pcp.add(pcpLabel);      pcp.add(localFile);      pcp.add(browsePC);      decimalSeparator = new JComboBox();      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);      pcp.add(new JLabel(LangTool.getString("xtfr.labelDecimal")));      pcp.add(decimalSeparator);      sp.add(as400p,BorderLayout.NORTH);      sp.add(pcp,BorderLayout.SOUTH);      // options panel      JPanel op = new JPanel();      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);      // now show the world what we can do      show();   }