How to reinstall Thinkpad Components on a T61?

The hard drive on my T61 died.  The operating system on it was XP.  I want to take the opportunity to upgrade to 7.  I ordered a new hard drive from Lenovo and rather than purchasing the recovering CDs, installing XP on the new drive, and then upgrading to 7, I just purchased a full install of 7.
When I do this I realize that I will not have all the components for the thinkpad, such as rescue and recovery, power manager, etc.  I believe I can download them, but what are the recommended components to install and what is the best protocol (e.g., should I created a separate partition for the rescus and recovery program?).
Any help is greatly appreciated.

Rescue and Recovery 4.21 hangs on installation on T61p after fresh Windows Vista OEM reinstall from Hard Drive partition - this is really a new thread but I am unused to forums and how to use them:
- OEM install went smoothly from blue button thinkvantage once I figured out that I should not use the encryption passwords on RnR startup (crudely alluded to in "Considerations" documentation) - conceptually it makes since you cannot RnR an OEM OS to an encrypted drive - took me a while on that one
- Once install finisthed, used SU to download and install all available Thinkvantage updates.  Noteably missing from the OEM install and the updates was RnR?  Why?  If RnR was on the OEM we would not be talking today
- Updated and installed all Windows updates, then installed Apps, etc, got all things working sweet.
- Needed a backup, so downloaded RnR 4.21 (en) and have had several installation hangups.  I have been patient waiting at least 24 hours on each hangup.
- After searching forums etc tried uninstalling Client Security Solution and disabled all but the hard drive password (not allowed) in the BIOS, so this computer is wide open.
- Turned off Norton antivirus for the install.
- Turned off UAC and ran the install program as an Administrator
- Defragged the disk before start, and only had one service to stop at that window (asks to retry after stopping service)  Lots of background items turned off.
- As it stands on my third or 4th attempt everything is there:  Program Files, Thinkvantage Menu options, (Z partition [ServiceV002 (Z says 497 mb free of 6.64 GB and indicator is RED], and a 15.9 GB "unknown" file on the root directory, a look at Disk writes on Resource Overview does not show anything happening directly related to tvtrnr_1015.exe setup process but it does occasionally do something because it remains near the top on CPU activity although the percentage rounds to 0% of CPU,  There are no error messages and the install appears within seconds of completing (for the past 24 hours).
- If I abort the installation, roll back sometimes fails, but I go back and remove any remnants of the program in program files, if needed.  I dont touch the registry.  A reboot is necessary to do anything. 
A BSOD is a permanent feature of shutdown until I get this installation working or start over again and forget about RnR.  Installation of other programs are slowed as well and I havent tried this yet, but system restore may be affected as well.
- So I sit here 24 hours in to the third or fourth try before writing to the forum.  Anything I missed?

Similar Messages

  • Does anybody know how to reinstall System Preferences? I accidentaly put System Preferences in the trash and emptied the trash :P

    Does anybody know how to get System Preferences? A couple of weeks ago I put it in the trash and emptied it. Does anyone know how to reinstall it?

    How Restore Deleted or Missing OS X Components
    A few of the basic OS X installed applications can be restored from the Optional Installs installer located in the Optional installs folder on your Installer DVD.  However, if what you need is not there then follow the instructions below.
    How to Use Pacifist to Restore Deleted or Missing OS X Components
    Insert the OS X Installer DVD into the optical drive.  Use a simple utility like TinkerTool to toggle invisibility so you can see invisible items.  Alternatively, open the Terminal application in your Utilities folder and at the prompt enter the following:
    defaults write com.apple.finder AppleShowAllFiles Yes
    Press RETURN.
    To turn off the display of invisible files repeat the above command substituting No for Yes.
    The install packages are located in the /System/Installation/ folder on the DVD.
    Download the shareware utility Pacifist. Use it to extract a fresh copy of the missing item(s) from the file archives on your OS X installation DVD. The file archives are in the /System/Installations/ folder (use Go to Folder option in the Go menu of the Finder.)
    Here are Four Basic ways to use Pacifist (courtesy of George Orville.)
      A. Drag a .pkg icon onto the Pacifist window .....proceed to step 7.
      B. Click on “Open Package ....” and navigate to package desired and click “Open” in
           the open/save window.....proceed to step 7.
      C. Insert Mac OS X installer CD and when it mounts, navigate to .... Menu->Go->Go
           to Folder. In the path field enter or paste ....
    /Volumes/disc name/System/Installation/Packages (where disc name is the name of the CD/DVD that you inserted.)
    Click on the  "Go" button ..... • Drag a .pkg to Pacifist..... proceed to step 7.
    The package you'll need will have to be discovered by trial and error, but for most applications you should start with the Essentials.pkg and/or Additional Essentials.pkg.
    D. Insert your Mac OS X install disk 1 .... and open Pacifist.
    1. In Pacifist, select "Open Mac OS X Install Packages" ... dialog may appear asking for disk 2, then disk 3 and finally disk 1 again.... {if DVD is not used)...If “Stop Loading” is selected...the procedure will stop!!!
    2a. When loading is complete, a new window appears, click the triangle to display contents of each package...Select item and proceed to step 7.
    2b. or click the “Find” icon in the Pacifist window and type the name of the software you need.
    3. In the list that comes back, click the top most entry for the item that you want. ..... that is the one for the English language.
    4. On the top of the Pacifist window, click “verify” .... you will probably be prompted for your password.
    5. Enter checks for.... “verify permissions” and “verify file contents.” and click “verify” ....enter password when prompted.... you will get back output which may look like this:
      20 files were scanned. 20 of 20 files were present on the hard disk. 0 of 20 files had file permissions that did not match those specified in the package. 0 of 20 files had checksums that did not match those specified in the package.
    6. Click “close”. Go to step 7.
    Extract or Install........
    7. In the Toolbar (upper left), you now have the option to extract or install. Click a file in the lower list and those two icons will be enabled.
    8. If “Extract to...” is selected.... navigate to the location where the file will be placed, select “choose”, select “extract” in new dialog that appears,authenicate , if prompted, click “OK”.
    9. In the next dialog, click “Extract”.
    10. If “Install” is selected... dialog will appear with the location/path of the installed software. Click “Install”
    11. Type in your password, click “OK”
    Pacifist will begin to extract files.
    12. In steps 8/10ß.... you also have the choice to “cancel”
    Notes: Pacifist may find that a file it is installing already exists on the hard disk. Pacifist will present you with an alert panel....
      • Stop
      • Leave original alone
      • Update .....
      • Default selection
      • Replace .... (Replace option should only be used on full install packages)

  • How to reinstall pre-installed iWorks after hard drive replaced?

    iWork was pre-installed on my iMac (July 2010) 3.2 gHz i3 running OS10.6.8. The original hard drive was recalled by Apple and replaced. I backed up all data to Crash Plan prior to the change out. When I tried to open any of the iWorks programs I received the following error message:
    I checked my install discs and application install discs, but iWork does not show up there. How can reinstall these programs?

    Thanks, mate, but the computer did not come with any iWork DVD. It only had the OS install disc and the Application restore disc, neither of which contain iWork. The error message reads: "Pages cannot be opened because of a problem. Check with the developer to make sure Pages works with this version of Mac OS X. You may need to reinstall the application. Be sure to install any available updates for the application and Mac OS X. Clic Report to see more detailed information and send a report to Apple."
    I sent a report to Apple. This message repeats for Pages, Numbers, and Keynote. My original receipt shows the iWork app was paid for.

  • How to reinstall my OS on macbook pro?

    how to reinstall my OS on macbook pro?
    there is no DVD attached with my purchase, and if I just download one from APP store, I have to pay and the ilife 11 suite will not be incleded, what should i do?

    filmpower wrote:
    How to reinstall my OS on macbook pro?
    If you have a software problem, read this.
    ..Step by Step to fix your Mac
    If you need to erase and install read this
    How to reinstall just OS X or erase/install OS X
    To restore your free or paid for iLife, read this
    Restoring your Free iLife (iPhoto, iMovie etc)

  • How to reinstall PDF Printer in Print & Scan window on OSX 10.8.2

    Hello,
    I was having issues where PDF's were not saving when I was printing them, so I thought that if I deleted the PDF printer from my list of printers and reinstalled it, my problem would be solved.  Now I can't figure out how to reinstall (add) the PDF printer back into this window.  I have uninstalled and reinstalled Acrobat, and I have been searching the web for about an hour.
    I am running OSX 10.8.2
    I have Adobe Creative Cloud installed
    I am on an iMac 3.4 Ghz Intel Core i7
    32 GB of RAM
    Thanks for any help you have.
    J

    Moving this discussion to the Creating, Editing, & Exporting PDFs forum.

  • How to reinstall windows 8 on bootcamp

    how to reinstall windows 8 on bootcamp macbook pro, without losing anything on OS (Apple) side

    Start Bootcamp Assistant then select the option to remove Windows and return your drive to a single partition. Once Windows is removed start Bootcamp Assistant again and select the option to install Windows. Follow the Bootcamp instructions for installing Windows.
    This process will not cause lose of OSx data or applications if done correctly. But as allways, create a good backup of your data because things sometimes go wrong or instructions are not followed causing data lose.

  • My hard drive crashed and I want to reinstall my personal itunes on another computer but I need to deauthorize my the original computer and I don't know how to reinstall.  Can someone help me please?

    My hard drive crashed and I restored my computer with my daughter's hard drive (her battery was dead) and I want to install my personal itunes on the new hard drive.  I was unable to deauthorize the original computer and I do not know how to reinstall my personal itunes.  Can someone help me with this?
    Thank you.

    Without a backup of your "crashed" HD you will have to download your iTunes purchases again. Make sure your restored computer is running the latest version of iTunes.
    Here is the procedure for your reference.
    On your restored computer, launch iTunes. Click on iTunes Store on the left
    On the right you will see this
    "Sign in" using the Apple ID used to purchase your songs, then click on "Purchased" (with the orange blob)
    On the summary page that appears select the tab "Not on This Computer" on the right.
    On the list that appears, select what you want and then click the "Download" button.
    When you want to play your newly downloaded music, you will have to "authorize" it. Don't worry about the lost HD until enough of your computers crash that you reach the limit of 5. Then you can "deauthorize all" and re-authorize as necessary.
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    http://support.apple.com/kb/HT2519

  • How to pass/share components between different JPanels/Container

    Dear Friends,
    I know here a lot Java Guru, I met a problem below.
    How can I pass components between different JPanels??
    here, ListPanelMain.java is main,
    When I click a tree node in splitPane, I can see all its children on the right splitpane, but I hope they can be seen on another Panel called "ListRightPane.java"
    How to do it??
    Why cannot pass??
    [1]. main Program:
    package swing.com.test.test;
    import javax.swing.JFrame;
    import java.awt.BorderLayout;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JSplitPane;
    import javax.swing.JTextArea;
    import java.io.Serializable;
    import swing.com.test.test.ListPanel;
    import java.awt.GridLayout;
    public class ListPanelMain implements java.io.Serializable{
         private JFrame frame;
         * Launch the application
         * @param args
         public static void main(String args[]) {
              try {
                   ListPanelMain window = new ListPanelMain();
                   window.frame.setVisible(true);
              } catch (Exception e) {
                   e.printStackTrace();
         * Create the application
         public ListPanelMain() {
              initialize();
         * Initialize the contents of the frame
         private void initialize() {
              frame = new JFrame("FileTreePanelMain");
              frame.setBounds(100, 100, 900, 675);
         //     FieTreePanelComm      ftreecomm                = new      FieTreePanelComm();
              ListPanel                ftree                     = new      ListPanel("C:\\");
    //          ListAllFile           ftree                     = new      ListAllFile("C:\\");
         //     FileTreePanelText      fileTreePanelText      = new      FileTreePanelText(ftreecomm);
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              final JPanel panel = new JPanel();
              panel.setLayout(new GridLayout(0, 2));
              frame.getContentPane().add(panel, BorderLayout.CENTER);
         //     final JSplitPane splitPane = new JSplitPane();
         //     frame.getContentPane().add(splitPane, BorderLayout.CENTER);
         //     splitPane.setLeftComponent(ftree);
              panel.add(ftree);
              final ListRightPanel listRightPanel = new ListRightPanel(ftree);
              //splitPane.setRightComponent(listRightPanel);
              panel.add(listRightPanel);
         frame.addWindowListener(new WindowAdapter() {
         public void windowClosing(WindowEvent e) {
         System.exit(0);
         frame.pack();
         frame.setVisible(true);
    [2]. Program 2:
    package swing.com.test.test;
    //File System Tree
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.GridLayout;
    import java.io.File;
    import java.util.Iterator;
    import java.util.Vector;
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JSplitPane;
    import javax.swing.JTextArea;
    import javax.swing.JTree;
    import javax.swing.JPanel;
    import javax.swing.event.TreeModelEvent;
    import javax.swing.event.TreeModelListener;
    import javax.swing.event.TreeSelectionEvent;
    import javax.swing.event.TreeSelectionListener;
    import javax.swing.tree.TreeModel;
    import javax.swing.tree.TreePath;
    import java.io.Serializable;
    public class ListPanel extends JPanel implements Serializable{
    protected JTree fileTree;
    private FileSystemModel fileSystemModel;
    private JTextArea ltextArea = new JTextArea();
    protected JTextArea fileDetailsTextArea = new JTextArea();
    private String str = "";
         public String getlTextArea() {
                   //textArea.getText();
                   return str;
         public String setlTextArea(String ta) {
                   ltextArea.setText(ta);
                   str = ta;
                   return str;
    public ListPanel(String directory) {
    //super("JTree FileSystem Viewer");
                   setLayout(new BorderLayout());
                   final JPanel panel = new JPanel();
                   panel.setLayout(new BorderLayout());
              add(panel, BorderLayout.CENTER);
    fileDetailsTextArea.setEditable(false);
    fileSystemModel = new FileSystemModel(new File(directory));
    fileTree = new JTree(fileSystemModel);
    fileTree.setEditable(true);
    fileTree.addTreeSelectionListener(new TreeSelectionListener() {
    public void valueChanged(TreeSelectionEvent event) {
    System.out.println("1. What we save is: getlTextArea() =" + getlTextArea() );
    File file = (File) fileTree.getLastSelectedPathComponent();
    fileDetailsTextArea.setText(getFileDetails(file));
    final ListRightPanel lrp = new ListRightPanel(this);
    lrp.textArea.setText(getFileDetails(file));
    setlTextArea(getFileDetails(file));
    System.out.println("2. What we save is: getlTextArea() =" + getlTextArea() );
              final JSplitPane splitPane = new JSplitPane();
              panel.add(splitPane, BorderLayout.CENTER);
              final JPanel panel_1 = new JPanel();
              splitPane.setLeftComponent(panel_1);
              panel_1.add(new JScrollPane(fileTree));
              final JPanel panel_2 = new JPanel();
              splitPane.setRightComponent(panel_2);
              panel_2.add(new JScrollPane(fileDetailsTextArea));
    setVisible(true);
    private String getFileDetails(File file) {
    if (file == null)
    return "";
    StringBuffer buffer = new StringBuffer();
    if (file.listFiles()!=null){
         for (int i=0; i< file.listFiles().length; i++){
         buffer.append(((file.listFiles())) + "\n");
         System.out.println("List all files");
    return buffer.toString();
    public static void main(String args[]) {
    new ListPanel("c:\\");
    class FileSystemModel implements TreeModel {
    private File root;
    private Vector listeners = new Vector();
    public FileSystemModel(File rootDirectory) {
    root = rootDirectory;
    public Object getRoot() {
    return root;
    public Object getChild(Object parent, int index) {
    File directory = (File) parent;
    String[] children = directory.list();
    return new TreeFile(directory, children[index]);
    public int getChildCount(Object parent) {
    File file = (File) parent;
    if (file.isDirectory()) {
    String[] fileList = file.list();
    if (fileList != null)
    return file.list().length;
    return 0;
    public boolean isLeaf(Object node) {
    File file = (File) node;
    return file.isFile();
    public int getIndexOfChild(Object parent, Object child) {
    File directory = (File) parent;
    File file = (File) child;
    String[] children = directory.list();
    for (int i = 0; i < children.length; i++) {
    if (file.getName().equals(children[i])) {
    return i;
    return -1;
    public void valueForPathChanged(TreePath path, Object value) {
    File oldFile = (File) path.getLastPathComponent();
    String fileParentPath = oldFile.getParent();
    String newFileName = (String) value;
    File targetFile = new File(fileParentPath, newFileName);
    oldFile.renameTo(targetFile);
    File parent = new File(fileParentPath);
    int[] changedChildrenIndices = { getIndexOfChild(parent, targetFile) };
    Object[] changedChildren = { targetFile };
    fireTreeNodesChanged(path.getParentPath(), changedChildrenIndices, changedChildren);
    private void fireTreeNodesChanged(TreePath parentPath, int[] indices, Object[] children) {
    TreeModelEvent event = new TreeModelEvent(this, parentPath, indices, children);
    Iterator iterator = listeners.iterator();
    TreeModelListener listener = null;
    while (iterator.hasNext()) {
    listener = (TreeModelListener) iterator.next();
    listener.treeNodesChanged(event);
    public void addTreeModelListener(TreeModelListener listener) {
    listeners.add(listener);
    public void removeTreeModelListener(TreeModelListener listener) {
    listeners.remove(listener);
    private class TreeFile extends File {
    public TreeFile(File parent, String child) {
    super(parent, child);
    public String toString() {
    return getName();
    [3]. Program 3:
    package swing.com.test.test;
    import java.awt.BorderLayout;
    import java.io.File;
    import javax.swing.JPanel;
    import javax.swing.JTextArea;
    import javax.swing.JTree;
    import javax.swing.event.TreeModelEvent;
    import javax.swing.event.TreeModelListener;
    import javax.swing.event.TreeSelectionEvent;
    import javax.swing.event.TreeSelectionListener;
    import javax.swing.tree.TreeModel;
    import javax.swing.tree.TreePath;
    import java.io.Serializable;
    public class ListRightPanel extends JPanel implements TreeSelectionListener, Serializable{
         protected JTextArea textArea;
    //     protected ListAllFile laf;
    private String str = "";
              public String getlTextArea() {
                        //textArea.getText();
                        return str;
              public String setlTextArea(String ta) {
                        str = ta;
                        return str;
         * Create the panel
         public ListRightPanel(ListPanel laff) {
              super();
              setLayout(new BorderLayout());
              final JPanel panel = new JPanel();
              panel.setLayout(new BorderLayout());
              add(panel, BorderLayout.CENTER);
              textArea = new JTextArea();
    final String st = laff.getlTextArea();
    System.out.println("####################################");
    System.out.println("st=" + st);
         laff.fileTree.addTreeSelectionListener(new TreeSelectionListener() {
         public void valueChanged(TreeSelectionEvent event) {
         //laff.textArea.setText(getFileDetails(file));
              textArea.setText(getlTextArea());
         System.out.println("ListRightPanel Was Invoked from ListPanel!!getlTextArea() =" + getlTextArea() );
         System.out.println("st=" + st);
              panel.add(textArea, BorderLayout.CENTER);
         public void valueChanged(TreeSelectionEvent e){};
    It is runnable program, just compile and run it in Console is ok,
    Regards
    Sunny

    Thnaks, code post again, see
    [1]. package swing.com.test.test;
    import javax.swing.JFrame;
    import java.awt.BorderLayout;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JSplitPane;
    import javax.swing.JTextArea;
    import java.io.Serializable;
    import swing.com.test.test.ListPanel;
    import java.awt.GridLayout;
    public class ListPanelMain implements java.io.Serializable{
         private JFrame frame;
          * Launch the application
          * @param args
         public static void main(String args[]) {
              try {
                   ListPanelMain window = new ListPanelMain();
                   window.frame.setVisible(true);
              } catch (Exception e) {
                   e.printStackTrace();
          * Create the application
         public ListPanelMain() {
              initialize();
          * Initialize the contents of the frame
         private void initialize() {
              frame = new JFrame("FileTreePanelMain");
              frame.setBounds(100, 100, 900, 675);
         //     FieTreePanelComm      ftreecomm                = new       FieTreePanelComm();
              ListPanel                 ftree                     = new      ListPanel("C:\\");
    //          ListAllFile            ftree                     = new      ListAllFile("C:\\");
         //     FileTreePanelText      fileTreePanelText      = new      FileTreePanelText(ftreecomm);
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              final JPanel panel = new JPanel();
              panel.setLayout(new GridLayout(0, 2));
              frame.getContentPane().add(panel, BorderLayout.CENTER);
         //     final JSplitPane splitPane = new JSplitPane();
         //     frame.getContentPane().add(splitPane, BorderLayout.CENTER);
         //     splitPane.setLeftComponent(ftree);
              panel.add(ftree);
              final ListRightPanel listRightPanel = new ListRightPanel(ftree);
              //splitPane.setRightComponent(listRightPanel);
              panel.add(listRightPanel);
                frame.addWindowListener(new WindowAdapter() {
                     public void windowClosing(WindowEvent e) {
                         System.exit(0);
                 frame.pack();
                 frame.setVisible(true);
    }[2] Program 2
    package swing.com.test.test;
    //File System Tree
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.GridLayout;
    import java.io.File;
    import java.util.Iterator;
    import java.util.Vector;
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JSplitPane;
    import javax.swing.JTextArea;
    import javax.swing.JTree;
    import javax.swing.JPanel;
    import javax.swing.event.TreeModelEvent;
    import javax.swing.event.TreeModelListener;
    import javax.swing.event.TreeSelectionEvent;
    import javax.swing.event.TreeSelectionListener;
    import javax.swing.tree.TreeModel;
    import javax.swing.tree.TreePath;
    import java.io.Serializable;
    public class ListPanel extends JPanel implements Serializable{
      protected JTree fileTree;
      private FileSystemModel fileSystemModel;
      private JTextArea ltextArea = new JTextArea();
      protected JTextArea fileDetailsTextArea = new JTextArea();
      private String str = "";
         public  String getlTextArea()  {
                   //textArea.getText();
                      return str;
         public  String setlTextArea(String ta)  {
                   ltextArea.setText(ta);
                   str = ta;
                      return str;
      public ListPanel(String directory) {
        //super("JTree FileSystem Viewer");
                   setLayout(new BorderLayout());
                   final JPanel panel = new JPanel();
                   panel.setLayout(new BorderLayout());
                  add(panel, BorderLayout.CENTER);
        fileDetailsTextArea.setEditable(false);
        fileSystemModel = new FileSystemModel(new File(directory));
        fileTree = new JTree(fileSystemModel);
        fileTree.setEditable(true);
        fileTree.addTreeSelectionListener(new TreeSelectionListener() {
          public void valueChanged(TreeSelectionEvent event) {
            System.out.println("1. What we save is: getlTextArea() =" + getlTextArea() );
            File file = (File) fileTree.getLastSelectedPathComponent();
            fileDetailsTextArea.setText(getFileDetails(file));
            final ListRightPanel lrp = new ListRightPanel(this);
            lrp.textArea.setText(getFileDetails(file));
            setlTextArea(getFileDetails(file));
            System.out.println("2. What we save is: getlTextArea() =" + getlTextArea() );
              final JSplitPane splitPane = new JSplitPane();
              panel.add(splitPane, BorderLayout.CENTER);
              final JPanel panel_1 = new JPanel();
              splitPane.setLeftComponent(panel_1);
              panel_1.add(new JScrollPane(fileTree));
              final JPanel panel_2 = new JPanel();
              splitPane.setRightComponent(panel_2);
              panel_2.add(new JScrollPane(fileDetailsTextArea));
        setVisible(true);
      private String getFileDetails(File file) {
        if (file == null)
          return "";
        StringBuffer buffer = new StringBuffer();
        if (file.listFiles()!=null){
             for (int i=0; i< file.listFiles().length; i++){
             buffer.append(((file.listFiles())) + "\n");
         System.out.println("List all files");
    return buffer.toString();
    public static void main(String args[]) {
    new ListPanel("c:\\");
    class FileSystemModel implements TreeModel {
    private File root;
    private Vector listeners = new Vector();
    public FileSystemModel(File rootDirectory) {
    root = rootDirectory;
    public Object getRoot() {
    return root;
    public Object getChild(Object parent, int index) {
    File directory = (File) parent;
    String[] children = directory.list();
    return new TreeFile(directory, children[index]);
    public int getChildCount(Object parent) {
    File file = (File) parent;
    if (file.isDirectory()) {
    String[] fileList = file.list();
    if (fileList != null)
    return file.list().length;
    return 0;
    public boolean isLeaf(Object node) {
    File file = (File) node;
    return file.isFile();
    public int getIndexOfChild(Object parent, Object child) {
    File directory = (File) parent;
    File file = (File) child;
    String[] children = directory.list();
    for (int i = 0; i < children.length; i++) {
    if (file.getName().equals(children[i])) {
    return i;
    return -1;
    public void valueForPathChanged(TreePath path, Object value) {
    File oldFile = (File) path.getLastPathComponent();
    String fileParentPath = oldFile.getParent();
    String newFileName = (String) value;
    File targetFile = new File(fileParentPath, newFileName);
    oldFile.renameTo(targetFile);
    File parent = new File(fileParentPath);
    int[] changedChildrenIndices = { getIndexOfChild(parent, targetFile) };
    Object[] changedChildren = { targetFile };
    fireTreeNodesChanged(path.getParentPath(), changedChildrenIndices, changedChildren);
    private void fireTreeNodesChanged(TreePath parentPath, int[] indices, Object[] children) {
    TreeModelEvent event = new TreeModelEvent(this, parentPath, indices, children);
    Iterator iterator = listeners.iterator();
    TreeModelListener listener = null;
    while (iterator.hasNext()) {
    listener = (TreeModelListener) iterator.next();
    listener.treeNodesChanged(event);
    public void addTreeModelListener(TreeModelListener listener) {
    listeners.add(listener);
    public void removeTreeModelListener(TreeModelListener listener) {
    listeners.remove(listener);
    private class TreeFile extends File {
    public TreeFile(File parent, String child) {
    super(parent, child);
    public String toString() {
    return getName();
    [3] Program 3:
    package swing.com.test.test;
    import java.awt.BorderLayout;
    import java.io.File;
    import javax.swing.JPanel;
    import javax.swing.JTextArea;
    import javax.swing.JTree;
    import javax.swing.event.TreeModelEvent;
    import javax.swing.event.TreeModelListener;
    import javax.swing.event.TreeSelectionEvent;
    import javax.swing.event.TreeSelectionListener;
    import javax.swing.tree.TreeModel;
    import javax.swing.tree.TreePath;
    import java.io.Serializable;
    public class ListRightPanel extends JPanel implements TreeSelectionListener, Serializable{
         protected JTextArea textArea;
    //     protected ListAllFile  laf;
        private String str = "";
              public  String getlTextArea()  {
                        //textArea.getText();
                           return str;
              public  String setlTextArea(String ta)  {
                        str = ta;
                           return str;
          * Create the panel
         public ListRightPanel(ListPanel  laff) {
              super();
              setLayout(new BorderLayout());
              final JPanel panel = new JPanel();
              panel.setLayout(new BorderLayout());
              add(panel, BorderLayout.CENTER);
              textArea = new JTextArea();
            final String st = laff.getlTextArea();
            System.out.println("####################################");
            System.out.println("st=" + st);
             laff.fileTree.addTreeSelectionListener(new TreeSelectionListener() {
                 public void valueChanged(TreeSelectionEvent event) {
                   //laff.textArea.setText(getFileDetails(file));
                      textArea.setText(getlTextArea());
                     System.out.println("ListRightPanel Was Invoked from ListPanel!!getlTextArea() =" + getlTextArea() );
                     System.out.println("st=" + st);
              panel.add(textArea, BorderLayout.CENTER);
           public void valueChanged(TreeSelectionEvent e){};
    }You can try this one, thanks again
    sunny

  • As a JSF Developer, I want to understand technically how the JSF View Components are rendered as html and how there events are binded to Server.I want to know each Java Class that is involved in flow.

    As a JSF Developer, I want to understand technically how the JSF View Components are rendered as html and how there events are binded to Server.I want to know how flows goes to the server and server understands the method which is to be called of managed bean. I know it is with annotation @ManagedBean and method name, but how Call is binded with annotation @ManagedBean.
    In short, i want to know the internal implementation of JSF Framework.

    As a JSF Developer, I want to understand technically how the JSF View Components are rendered as html and how there events are binded to Server.I want to know how flows goes to the server and server understands the method which is to be called of managed bean. I know it is with annotation @ManagedBean and method name, but how Call is binded with annotation @ManagedBean.
    In short, i want to know the internal implementation of JSF Framework.

  • By mistake i erase my macbook pro hard disk how to reinstall the yosemite on my macbook because it donsnt read the bootable drive?

    by mistake i erase my macbook pro hard disk how to reinstall the yosemite on my macbook because it donsnt read the bootable drive?

    usamafrombeverly hills wrote:
    when i start the macbook & press cmd+R it goes to the internet recovery
    Well then when you erased your hard drive, your erased the Recovery partition, also.
    Use Internet Recovery to either restore from your Time Machine backup or reinstall the OS if you don't have a TM Backup.
    It will install the OS that shipped on that Mac. You can then upgrade via the App Store.

  • How to reinstall a hard drive on a mac pro that was accidentally dragged out of Finder

    How to reinstall a hard drive on a mac pro that was accidentally dragged out of Finder?  I have files on this drive that I don't want to loose or corrupt.

    If you mean you dragged the hard drive shortcut out of the sidebar of a Finder window, you're quite all right - that's just a shortcut and you haven't lost any files. You can get it back by going to Finder preferences (the Finder menu, then Preferences), click Sidebar, and tick the "hard drives" box fully to show all hard drives.
    Post back if you did something different though.
    Matt

  • How to reinstall Windows 8 on Yoga 13 with damaged Recovery Image?

    I changed the partitions on my Yoga 13. Now it is not possible to refresh, reinstall or perform an advance start-up, as it looks like there is no recovery image anymore. The systems is currently very messy and needs a reinstall.
    Can someone tell me how to reinstall Windows 8 on the Yoga 13 when the recovery image is lost or damaged?

    hi Chevex,
      Thanks for using Lenovo Community Forums!
    In the event that the Recovery partition is not working the only option is to use the Recovery CD that you can create when you first got the computer.
    but if you were not able to create a Recovery CD and the Onekey Recovery is not working.
    You can get the Recovery CD from the Software Department (Fees may apply to the discs)
    you can contact the Hardware Team again and ask to be transferred to Software team for purchasing RCD
    Lenovo Technical Support (US)
    IDEA-branded and
    B, C, E, G, H, K, N, Q, V, Y Series Products
    English
    1-877-4-Lenovo
    (1-877-453-6686)
    24 hours a day
    7 days a week
    Hope this helps,
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • I bought the photoshop install online and I put it on my laptop. But now I have a new and better computer for photo and video but I can not figure out how to reinstall my photoshop on this new computer. When I bought it, they said I would be able to insta

    I bought the photoshop install online and I put it on my laptop. But now I have a new and better computer for photo and video but I can not figure out how to reinstall my photoshop on this new computer. When I bought it, they said I would be able to install it on 2 different computers. PS they are both PC computers.

    Downloadable installation files available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4, CS4 Web Standard | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  13 |12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  13 |12 | 11, 10 | 9,8,7
    Lightroom:  5.7.1| 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.window using the Lightroom 3 link to see those 'Important Instructions'.

  • How to reinstall Microsoft Office for Mac after new hard drive?

         Recently I had a problem with my Macbook Pro, and unfortunately had to purchase a new hard drive and have it installed. This also led to the loss of data and other things, such as Microsoft Office for Mac. I know this is an Apple community, but I get better answers here than at the Microsoft communities so I'm hoping someone can help find out how to reinstall Microsoft Office 2013. I logged onto my Microsft account and it says that there is no record of me purchasing Microsoft Office on that account but I know thats the account that it was purchased on, so i cannot get my product key to reinstall it as directed. Someone please help!!!!

    Try calling MS support and explaining the situation, maybe they will issue a new key.
    1 (800) 642-7676 (Consumer)
    Microsoft Corporation, Customer service
    24/7 Microsoft Support - Microsoft.MyPhoneSupport.com
    Admicrosoft.myphonesupport.com/
    1 (855) 698 3249
    Phone Our Tech Support Experts 24/7 For Microsoft Support. Call Now...
    Support for Microsoft? - Call Toll Free Now
    Adwww.supportdeskwiz.com/Microsoft
    1 (855) 760 8099
    24x7 Tech Support for Microsoft by SDW.
    Microsoft Windows Support - Call US Toll Free
    Admicrosoft-os-support.itechline.com/
    1 (855) 281 4201
    Tech Support for Microsoft Windows.
    Live Tech Support - Windows 7 Support - Outlook Support

  • How to reinstall from time machine onto a new hard drive?

    how to reinstall the system from time machine to a new hard drive?

    If you are connected to the internet you can do this.
    Boot your computer and immediately hold down command, option and R  (three keys together). This gets you connected with internet recovery.
    See this article for more directions: http://support.apple.com/kb/HT4718.
    This process installs an OS on your blank drive. You can then boot from the fresh OS installation and restore from your Time Machine back up.
    Note that you cannot boot from a TM back up.

Maybe you are looking for

  • Kernel Panic Woes

    This kernel panic seems to pop up when I unplug my Apple keyboard, but I can't figure out as to why. Does anyone know? panic(cpu 1 caller 0x001A3135): Unresolved kernel trap (CPU 1, Type 14=page fault), registers: CR0: 0x8001003b, CR2: 0x00000008, CR

  • Can I play the sound form Apple TV via my airport express attached speakers?

    I have 3 x AirPort Express based speakers which I use for iTunes music playback.  I have today bought an Apple TV, which I would like to use to also play music to my AirPort Expresses.  Is that possible if so how? I can't see an option to use the Air

  • Multi-master support

    I have a LDAP server that want to sync entries to an AD. Can I config the a multi-master for the LDAP ?

  • Guys, how about being able to clear "Recent"?

    It would be nice to be able to clear "Recent".  I was so overwhelmed with ALL my prior viewing of files. Ok. Great App.

  • Sync does not work- multiple desktop FF

    Sync does not allow adding more than one DESKTOP FF in order to sync multiple desktop FF (e.g: work, home, & friends , etc..) I do not like to use an add-on.