Move node and its silings from one jtree to another

Hi,
I am trying to move JTree nodes and its siblings from one JTree to another. If anyone has the code, please post it on the website or mail to [email protected]
Thanks
Pavan

Pavan,
You may have to do a sanity check before adding it.
Better run the program in a debugger and have a break point at the clipBoard.put() line. Else system.out.println() lines will kill enormouse programming time rather than using debugger.
Also in following this thread, i found that you may have to be bit more thorough with the DefaultMutableTreeNode class first.
Thanks,
ananth
Thomas,
for (int p = 0; p < jtree.getSelectionCount(); p++) {
               System.out.println(".3.......p= "+p);
node =
=
(EuamDefaultMutableTreeNode)paths[p].getLastPathCompon
nt();
                    clipBoard.put(node.toString(), node);
               System.out.println(".4...........");
Giving error at clipBoard.put()
line....java.lang.NullPointerException
..Any idea why?
Thanks.
Pavan

Similar Messages

  • HT204053 how do i move page and numbers documents from one icloud login to another?

    how do i move page and numbers documents from one icloud login to another?
    I had to change my email address whcih meant new apple login.
    I have a number of docs in iwork/pages and iwork/numbers.  How do I transfer them to my new login?

    There's a couple of ways but my tip backing up your documents in the cloud is as good as any.

  • How can I move the ODI Work Repository from one server to another server?

    How can I move the ODI Work Repository from one server to another server?

    Hi,
    If you would like to move your source models, target models and project contents from Work repository 1 to another work repository.
    I.e. Dev. server to Prod Server.
    1. Firstly, replicate the master repository connections i.e. with same naming conventions manually
    2. Go to Dev. Server work repository -> File Tab -> Click on Export work repository (save it in a folder)
    3. After exporting, you can view the xml files in the folders.
    4. Now, Open the Prod. server and make sure you already replicated mas. rep. details.
    5. Now, right click on model and import source model in synonym mode insert_update (select source model from the folder where your xml file located)
    6. Similarily, import again target then Project.
    Now, check. It should work.
    Thank you.

  • Why cannot I drag and drop songs from one playlist to another?

    Actually I have two questions.  I just updated from Leopard to snow leopard.  Now when I import songs, it says "Do you want to import to burn playlist?"  I click "yes".  Then when it is finished copying, I go to "playlists" on the top of the screen and click on the "burn playlist" and it says there are no items.  Where did the songs go.  I would like to burn a playlist that I imported this way.  I haven't tried arranging songs in the order I want them yet, but now see that is an issue also.  I also used to see a list of my playlists on the left side of the screen and the songs within each of those playlists when I clicked on them and easily could drag and drop songs from one playlist to another.  How do I do the same functions that I used to do before I updated? Does this update make it impossible to do the same functions as before?  Where can I find a "manual" of sorts to direct me to explain this new format?  If there is no way to do these things, I will have to say that I want my old iTunes back.  Can I do so???  Actually, the only reason I updated was so that I could play pix and movies from my camera into iPhoto.  When I did so, it said I had to update other programs to get iPhoto to work.  I am trying very hard not to be very frustrated.  PLEASE HELP!!!!!!!!!!!!!!!!!!

    After poking around for a while figured how to do things in this new iTunes.  Not as intuitive as the old one.  Sorry I don't have time to tell what I figured out.  Maybe some other time.

  • How to move a specific tablespace datafile from one directory to another

    Database: 10.2.0.1
    OS : Generic
    Problem Description : How to move a specific tablespace datafile from one directory to another considering that the database is on Oracle Dataguard setup
    ** Oracle is working on this issue, but in parallel is opening the topic to the Community so that Community members can add their perspective, experience or knowledge. This will further enhance all knowledge bases including My Oracle Support and My Oracle Support Communities **
    Edited by: ram_orcl on 16-Aug-2010 21:21

    Dear ram_orcl,
    Please follow the procedures here;
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14239/manage_ps.htm#i1034172
    8.3.4 Renaming a Datafile in the Primary Database
    When you rename one or more datafiles in the primary database, the change is not propagated to the standby database. Therefore, if you want to rename the same datafiles on the standby database, you must manually make the equivalent modifications on the standby database because the modifications are not performed automatically, even if the STANDBY_FILE_MANAGEMENT initialization parameter is set to AUTO.
    The following steps describe how to rename a datafile in the primary database and manually propagate the changes to the standby database.
       1.
          To rename the datafile in the primary database, take the tablespace offline:
          SQL> ALTER TABLESPACE tbs_4 OFFLINE;
       2.
          Exit from the SQL prompt and issue an operating system command, such as the following UNIX mv command, to rename the datafile on the primary system:
          % mv /disk1/oracle/oradata/payroll/tbs_4.dbf
          /disk1/oracle/oradata/payroll/tbs_x.dbf
       3.
          Rename the datafile in the primary database and bring the tablespace back online:
          SQL> ALTER TABLESPACE tbs_4 RENAME DATAFILE      2> '/disk1/oracle/oradata/payroll/tbs_4.dbf'
            3>  TO '/disk1/oracle/oradata/payroll/tbs_x.dbf';
          SQL> ALTER TABLESPACE tbs_4 ONLINE;
       4.
          Connect to the standby database, query the V$ARCHIVED_LOG view to verify all of the archived redo log files are applied, and then stop Redo Apply:
          SQL> SELECT SEQUENCE#,APPLIED FROM V$ARCHIVED_LOG ORDER BY SEQUENCE#;
          SEQUENCE# APP
          8 YES
          9 YES
          10 YES
          11 YES
          4 rows selected.
          SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
       5.
          Shut down the standby database:
          SQL> SHUTDOWN;
       6.
          Rename the datafile at the standby site using an operating system command, such as the UNIX mv command:
          % mv /disk1/oracle/oradata/payroll/tbs_4.dbf /disk1/oracle/oradata/payroll/tbs_x.dbf
       7.
          Start and mount the standby database:
          SQL> STARTUP MOUNT;
       8.
          Rename the datafile in the standby control file. Note that the STANDBY_FILE_MANAGEMENT initialization parameter must be set to MANUAL.
          SQL> ALTER DATABASE RENAME FILE '/disk1/oracle/oradata/payroll/tbs_4.dbf'
            2> TO '/disk1/oracle/oradata/payroll/tbs_x.dbf';
       9.
          On the standby database, restart Redo Apply:
          SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE
            2> DISCONNECT FROM SESSION;
    If you do not rename the corresponding datafile at the standby system, and then try to refresh the standby database control file, the standby database will attempt to use the renamed datafile, but it will not find it. Consequently, you will see error messages similar to the following in the alert log:
    ORA-00283: recovery session canceled due to errors
    ORA-01157: cannot identify/lock datafile 4 - see DBWR trace file
    ORA-01110: datafile 4: '/Disk1/oracle/oradata/payroll/tbs_x.dbf'Hope That Helps.
    Ogan

  • How to Move or Copy the Tables from One Database to Another Database ?

    HI,
          Can any one help me on this, How i can move or copy the tables from one database to another database in SQL server 2005 by using SQL query. Hope can anyone provide me the useful and valuable response.
    Thanks
    Gopi

    Hello,
    Maybe these links help you out
    http://www.microsoft.com/downloads/en/details.aspx?familyid=56E5B1C5-BF17-42E0-A410-371A838E570A&displaylang=en
    http://www.suite101.com/content/how-to-copy-a-sql-database-a193532
    Also, you can just detach the database make a copy and move it to the new server.

  • Why can't I drag and drop songs from one playlist to another?

    All of a sudden I can no longer drag and drop songs from one playlist to another.  The only way I can do it now is by selecting the song[s], right click on them, and then choose "Move to playlist...."  Any thoughts?

    Yes! This is really annoying. I don't know why they couldn't keep the functionality from the old version. The more I use the new iTunes the less I like it.

  • Can I Copy and Paste text from one Contact to Another on iPhone 3G?

    Can I Copy and Paste text from one Contact to Another on iPhone 3G?
    Or even better while the iPhone is connected to my PC can I view the address book on the iPhone and make changes using my PC keyboard?
    I had a challenge importing from my outlook as it created dual entries for people I had with multiple email addresses or telephone numbers so I need to copy and paste contact info from one to antoher.
    Can anyone help?

    MCWEB wrote:
    Can I Copy and Paste text from one Contact to Another on iPhone 3G?
    You will be able to do copy & paste when 3.0 comes out this summer.
    Or even better while the iPhone is connected to my PC can I view the address book on the iPhone and make changes using my PC keyboard?
    No. You would make changes to the address book on your PC and then sync via iTunes.

  • Move Verizon E-mail address from one account to another

    I am wondering if it is possible to move an email address from one account to another. I am the primary account holder for a couple of email addresses - one of which is my mother-in-law. I am discontinuing my Verizon account but she has since started a Verizon FIOS account at her house. I'd like to move her email address to her account so the switch for her is painless (or as painless as possible). Thanks, in advance, for your help.

    Yes and No. As of right now they will not move email address unless the name on both accounts match exactly.

  • How to move only subset of data from one database to another?

    Both source & destination are Oracle11g databases.
    The requirement details are as below,
    1) The database contains static as well as transactional data for telecom domain.
    2) We have to move region-wise data from one database to another.
    3) There are around 10 regions.
    4) The region wise data extraction from source db is based on around 40 to 50 tables. Rest of the tables contains
    static data & it will not change.
    5) The volume is around 1 million subscribers per region.
    6) The migration is required because
    a) The client is upgrading its base product which uses this database
    b) There is a change in structure of static tables
    c) Hardware upgrade
    d) The client want to start with single region on new database & rest of the regions will be operated from old
    database.
    7) Keep execution time to very minimum.
    I am thinking to have solution as below,
    1) Create destination database with upgraded db structure (as mentioned in 6b)
    2) Create database links to access source db in destination db.
    3) Write SQL queries to fetch data from all the respective tables for a specific region
    4) Write separate PL/SQL blocks for each table to fetch data from source db & insert into respective table in
    destination db
    a) Use FOR ALL & bulk collect to improve the performance
    b) Divide table data into multiple chunks & execute parallel batches (around 10) to insert the data
    5) Validate pre & post counts to verify the success of migration
    Is there any other better way?
    Regards,
    Sandeep

    How to move only subset of data from a partiular table by using transportable tablespace?
    E.g. SUB table using SMP_SUB tablespace contains subscriber data in source database.
    The indexes defined on SUB table are under SMP_IDX_SUB tablespace
    The subscribers data can be categorized by different regions, say region_id column. Then how to move data & indexes of SUB table from source db to destination db?
    any specific example would be helpful.

  • How do you move Compressor 3.05 settings from one Mac to another?

    How do you move settings from one Mac to another?
    I have Compressor 3.05 installed on two Intel Macs: a MacPro tower and a MacBook Aluminum. I created a new setting on the MacBook, and can see it in Library -> App Support -> Compressor as "<name>.setting" Then I moved to the Mac Pro for speed and created a few more settings. I copied these settings from the Mac Pro libary and put them in the MacBook library; restarted Compressor on the MacBook but still cannot see those presets from within Compressor. I hate to re-create all those settings, but I do move between both computers depending on what I am doing.
    What am I missing? Thanks.

    To copy single settings.
    1. Drag & Drop your setting from the Compressor Settings window to i.e. the desktop
    2. Copy .setting file to an other Mac
    3. Drag & Drop the .setting file(s) over to the Settings window in Compressor
    To copy settings groups (folders)
    1. Go to */Users/yourusername/Library/Application Support/Compressor*
    2. Copy the settings group folder you want to your i.e. the desktop
    3. Make sure Compressor is not open on the other Mac
    4. Copy the settings group folder to the same location on the other Mac
    5. Open Compressor
    Hope this helps
    Message was edited by: jeffd55

  • How do I move photos on my MacBook from one account to another?

    How do I move photos in iPhoto from one accout to another on the same MacBook Air?

    Just the Photos? File -> Export and export them to the Users/Shared Folder. Switch Accounts and access them from the Shared Folder.
    Thw whole Library: Drag that to the Users/Shared folder.
    Regards
    TD

  • How do I move a contact or contacts from one group to another group?

    How do I move contacts from one group to another group on my iPhone?

    Hi ,
    In exchange you cannot have the same email address for multiple recipients .
    First and Best way is  to remove the email address from the old user account and add the same smtp address to the new user who is going to take his place.
    Second option would be forwarding all the emails from old user account to new user account when an email was triggered to the email address ([email protected]) .on this case there is no need to remove or delete the email address from the old user account
    and also email address ([email protected]) will still reside on the old user account .
    If i am at your place i will choose the first option and i agree with DJ
    Grijalva
    Please reply me if you have any queries .
    Regards
    S.Nithyanandham
    Thanks S.Nithyanandham

  • I would love to be able to drag and drop items from one page to another from the plan window. Is that possible?

    In desiging my website, I would like to be able to move items from one page to another by dragging and dropping from the plan architecture screen. It might also help if the window could have a zoom in and out feature to facilitate that.

    I just tried zooming in the plan window and discovered it works.

  • How do you move adobe acrobat XI pro from one computer to another?

    how do you move adobe acrobat XI standard pro from one computer to another?

    Hi jeszamom,
    You'll need either the installation media (if you bought from a retailer), or a downloaded installer. If you don't have the CD, you can download Acrobat from this links in this document: Download Acrobat products | Standard, Pro | XI, X - Adobe.
    It's OK to keep it on the other computer; your license allows you to install it on up to two computers. But, if you'd like you can deactivate it on that old computer, which would free up that activation for use on yet another computer. Please see Activation & Deactivation Help - Adobe
    You'll need your serial number to activate on the new computer.
    Please let us know how it goes.
    Sara

Maybe you are looking for