bounds.x += icon.getIconWidth() + 4;
{ int padding = icon.getIconWidth() + 4; bounds.x += padding; bounds.width -= padding; }
    void editFile(int index)    {      Rectangle bounds = list.getCellBounds(index, index);      list.scrollRectToVisible(bounds);      editFile = (File) list.getModel().getElementAt(index);      if (editFile.canWrite())        {          startEditing = true;          editField = new JTextField(editFile.getName());          editField.addActionListener(new EditingActionListener());                    Icon icon = getFileView(fc).getIcon(editFile);          if (icon != null)            bounds.x += icon.getIconWidth() + 4;          editField.setBounds(bounds);                    list.add(editField);                    editField.requestFocus();          editField.selectAll();        }      else        completeEditing();      list.repaint();    }