}
if (session != null) { config = session.getConfiguration();  if (config.isPropertyExists("emailTo")) { setToCombo(config.getStringProperty("emailTo"), toAddress); } }  gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 10, 5, 5); semp.add(screenDump, gbc); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 0; gbc.anchor = GridBagConstraints.CENTER; gbc.insets = new Insets(0, 5, 5, 5); semp.add(text, gbc); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 0; gbc.anchor = GridBagConstraints.CENTER; gbc.insets = new Insets(0, 5, 5, 10); semp.add(graphic, gbc); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(5, 10, 5, 5); semp.add(tol, gbc); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 1; gbc.gridwidth = 2; gbc.fill = GridBagConstraints.HORIZONTAL; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(5, 5, 5, 10); semp.add(toAddress, gbc); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(5, 10, 5, 5); semp.add(subl, gbc); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 2; gbc.gridwidth = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(5, 5, 5, 10); semp.add(subject, gbc); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 4; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(5, 10, 5, 5); semp.add(bodyl, gbc); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 3; gbc.gridwidth = 2; gbc.gridheight = 3; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(5, 5, 5, 10); semp.add(bodyScrollPane, gbc); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 6; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(5, 10, 5, 5); semp.add(fnl, gbc); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 6; gbc.gridwidth = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(5, 5, 5, 10); semp.add(attachmentName, gbc);  return semp;  }
   private JPanel setupMailPanel (String fileName) {      JPanel semp = new JPanel();      semp.setLayout(new AlignLayout(2,5,5));      JLabel tol = new JLabel(LangTool.getString("em.to"));      JLabel subl = new JLabel(LangTool.getString("em.subject"));      JLabel bodyl = new JLabel(LangTool.getString("em.body"));      JLabel fnl = new JLabel(LangTool.getString("em.fileName"));      toAddress = new JComboBox();      toAddress.setEditable(true);      subject = new JTextField(30);      bodyText = new JTextArea(6,30);      JScrollPane bodyScrollPane = new JScrollPane(bodyText);      bodyScrollPane.setHorizontalScrollBarPolicy(      JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);      bodyScrollPane.setVerticalScrollBarPolicy(      JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);      attachmentName = new JTextField(fileName,30);      config = null;      if (session != null) {         config = session.getConfiguration();         if (config.isPropertyExists("emailTo")) {            setToCombo(config.getStringProperty("emailTo"),toAddress);         }      }      semp.add(tol);      semp.add(toAddress);      semp.add(subl);      semp.add(subject);      semp.add(bodyl);      semp.add(bodyScrollPane);      semp.add(fnl);      semp.add(attachmentName);      return semp;   }