示例#1
0
  /**
   * This method initializes jTextArea
   *
   * @return javax.swing.JTextArea
   */
  private JTextArea getJTextArea() {
    if (installDirTextArea == null) {

      String path;

      path = System.getProperty("user.home");

      installDirTextArea = new JTextArea();
      installDirTextArea.setEditable(false);
      installDirTextArea.setText(System.getProperty("user.home"));

      installDirTextArea.setBounds(new Rectangle(13, 49, 206, 21));
    }
    return installDirTextArea;
  }
示例#2
0
  /**
   * This method initializes jTextField
   *
   * @return javax.swing.JTextField
   */
  private JTextField getLogTextField() {
    String path;

    if (installLogText == null) {

      path = System.getProperty("user.home");

      installLogText = new JTextField();
      installLogText.setEditable(false);
      installLogText.setBounds(new Rectangle(12, 91, 290, 20));
      installLogText.setText(path);
    }
    return installLogText;
  }