Example #1
0
  public DlgInfo(Frame frame, FTPThread tBrowse, String path, FileInfo fileInfo, Component c) {
    super(frame, fileInfo.getName() + " Info", false);
    LogManager.debug("Displaying info for: " + fileInfo.toString());

    this.fileInfo = fileInfo;
    this.path = path;
    this.tBrowse = tBrowse;

    try {
      setDefaultCloseOperation(DISPOSE_ON_CLOSE);
      slInit();
      //			jbInit();
      if (c == null) {
        locateDialog(frame);
      } else {
        setLocation(c.getX() + 25, c.getY() + 25);
      }
      setResizable(false);
      pack();
      treeDetailInfo.updateUI();
      setVisible(true);
      setFocusable(true);
      requestFocus();

    } catch (Exception ex) {
      LogManager.error("Failed to initialize the file info panel.", ex);
    }
  }