How can i replace default Ctrl+C action in 1.4

I implement my own action for copy and paste, like copy tree node to clipboard. Under 1.3 it's ok. But under 1.4, some default action is taken when i press Ctrl+C and only the text of treenode is copied. What should i do to make my implementation work in both 1.3 and 1.4?

Use the code bellow. It works for me.
yourComponent.registerKeyboardAction(yourActionListener,"COPY",KeyStroke.getKeyStroke(KeyEvent.VK_C,KeyEvent.CTRL_DOWN_MASK),JComponent.WHEN_FOCUSED);

Similar Messages

  • Is there any way to replace my iphone 5. The back camera is not working. Since there's no apple store here in the philippines. How can i replace it?

    How can i replace it?

    You probably do in NZ ..................
    The Apple iphone warranty is not and never has been from the very first iPhone, international
    Sorry but you were stitched up

  • How can i replace my new iPad mini to ipad air

    how can I  replace my new iPad mini to a new iPad air online

    If you bought the Mini within the past 14 days you can get a refund and buy the Air. Take it to an Apple store.
    Otherwise.......
    Your only option is to sell the iPad and buy a new one.
    Apple Reuse and Recycle Program
    http://store.apple.com/us/browse/reuse_and_recycle
    How to Sell Your Old iPad  http://tinyurl.com/85d69lk
    Other sources to sell.
    eBay Instant Sell http://instantsale.ebay.com/?search=ipad
    Sell and Recycle Used Electronics - Gazelle http://www.gazelle.com/
    For instant gratification in selling a used iPhone or iPad, Gazelle’s Gadget Trader, an iOS app, is tough to beat. In seconds it detects the device and reveals how much it is worth in good condition. Tap the Sell This Phone to Gazelle button and the deed is done.
    Sell Electronics for Cash - Next Worth  http://www.nextworth.com/
    Buy My Tronics  http://www.buymytronics.com/
    Sell Your iPad http://www.sellyourmac.com/mac-product-guides/ipad.html
    Totem http://www.hellototem.com/
    How To Sell Your Old iPad: 5 Places To Trade In Your Old Device
    http://www.huffingtonpost.com/2013/11/05/ipad-trade-in_n_4218964.html
    THIS IS VERY IMPORTANT - What to do before selling or giving away your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT5661
     Cheers, Tom

  • How can I replace an administrators account?

    I have an older Powerbook G4 laptop that someone else would like. How can I replace the adminsitrator's account?

    Hi Bob,
    2 ways to go...
      1. Insert the Mac OS X Install disc that came with your computer, then restart the computer while holding the C key.
       2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu. (In Mac OS X 10.4 or later, you must select your language first.)
          *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
       3. Click the Erase tab.
       4. Click the disclosure triangle to the left of the hard drive icon to display the names of your hard disk volumes and partitions.
       5. Select your Mac OS X volume.
       6. Highlight the drive, select Partition Tab, then Format type... MacOS Extended Journalled, select the Security Options button, choose Zero Out Data, Erase... after completion do a new install.
    Or...
    Open System Preferences>Accounts, unlock the lock, click on the little plus icon, make a new admin account, log out & into the new account.
    In the same pref pane highlight your old account, click the little minus icon, then use Disk Utility to Secure Erase Free Space.

  • How can I replace the cursor in the below query?

    I have this below query which calls a stored procedure that takes only 1 item's attributes at a time. But because of performance problems we are
    required to remove the cursor. How can I replace the below cursor logic with set operations or CTE? Please advice.
    DECLARE db_cursor_ava CURSOR
    FOR
    SELECT t.[agent-id],
    t.[start-date],
    t.[end-date],
    t.[monitor-days],
    t.[monitor-start],
    t.[monitor-end],
    t.[timezone-offset]
    FROM @tmpAgentPeriodTimeRange t
    OPEN db_cursor_ava
    FETCH NEXT FROM db_cursor_ava INTO @agentID_ava,
    @stDateTime_ava,
    @endDateTime_ava,
    @monDays_ava,
    @monSt_ava,
    @monEnd_ava,
    @offset_ava
    WHILE @@FETCH_STATUS = 0
    BEGIN
    DELETE
    FROM @tmpMonitorPeriod
    DELETE
    FROM @tmpFinalResult
    SET @runID = 1
    IF(@endDateTime_ava>DATEADD(MI,@offset_ava, GETUTCDATE()))
    BEGIN
    SET @endDateTime_ava=DATEADD(MI,@offset_ava, GETUTCDATE())
    END
    INSERT INTO @tmpMonitorPeriod
    EXEC core.usp_GetMonitoringPeriod
    @startDate = @stDateTime_ava,
    @endDate = @endDateTime_ava,
    @monitoringDays = @monDays_ava,
    @monitoringStart = @monSt_ava,
    @monitoringEnd = @monEnd_ava
    SELECT @maxID = MAX(tm.id)
    FROM @tmpMonitorPeriod tm
    FETCH NEXT FROM db_cursor_ava INTO @agentID_ava,
    @stDateTime_ava,
    @endDateTime_ava,
    @monDays_ava,
    @monSt_ava,
    @monEnd_ava,
    @offset_ava
    END
    CLOSE db_cursor_ava
    DEALLOCATE db_cursor_ava
    mayooran99

    You've been down this path before  - and the response is exactly the same.
    how to replace cursor logic
    And I'll suggest that you post the entire code - since you repeatedly delete 2 table variables but only populate one. The setting of @maxID also seems to have no purpose. And perhaps the issue here isn't the cursor but the general approach.  Who knows
    - but it appears you may have prematurely assumed that the cursor is the problem.

  • How can I replace my old print driver with my new printer driver on 13

    how can I replace my old print driver with my new print driver on photo elements 13

    The print driver is not installed in PSE.
    Check with the manufacturer of your printer.

  • How Can I replace newScale Text Strings with Custom Values?

    How Can I replace newScale Text Strings with Custom Values?
    How can I replace newScale text strings with custom values?
    All  newScale text is customizable. Follow the procedure below to change the  value of any text string that appears in RequestCenter online pages.
    Procedure
    1. Find out the String ID of the text string you would like to overwrite by turning on the String ID display:
    a) Navigate to the RequestCenter.ear/config directory.
    b) Open the newscale.properties file and add the following name-value pair at the end of the file:res.format=2
    c) Save the file.
    d) Repeat steps b and c for the RmiConfig.prop and RequestCenter.prop files.
    e) Stop and restart the RequestCenter service.
    f) Log  in to RequestCenter and browse to the page that has the text you want  to overwrite. In front of the text you will now see the String ID.
    g) Note down the String ID's you want to change.
    2. Navigate to the directory: /RequestCenter.ear/RequestCenter.war/WEB-INF/classes/com/newscale/bfw.
    3. Create the following sub-directory: res/resources
    4. Create the following empty text files in the directory you just created:
    RequestCenter_0.properties
    RequestCenter_1.properties
    RequestCenter_2.properties
    RequestCenter_3.properties
    RequestCenter_4.properties
    RequestCenter_5.properties
    RequestCenter_6.properties
    RequestCenter_7.properties
    5. Add the custom text strings to the appropriate  RequestCenter_<Number>.properties file in the following manner  (name-value pair) StringID=YourCustomTextString
    Example: The StringID for "Available Work" in ServiceManager is 699.
    If you wanted to change "Available Work" to "General Inbox", you  would add the following line to the RequestCenter_0.properties file
         699=General Inbox
    Strings are divided into the following files, based on their numeric ID:
    Strings are divided into the following files, based on their numeric ID:
    String ID  File Name
    0 to 999 -> RequestCenter_0.properties
    1000 to 1999 -> RequestCenter_1.properties
    2000 to 2999 -> RequestCenter_2.properties
    3000 to 3999 -> RequestCenter_3.properties
    4000 to 4999 -> RequestCenter_4.properties
    5000 to 5999 -> RequestCenter_5.properties
    6000 to 6999 -> RequestCenter_6.properties
    7000 to 7999 -> RequestCenter_7.properties
    6. Turn off the String ID display by removing (or commenting out) the line "res.format=2" from the newscale.properties, RequestCenter.prop and RmiConfig.prop files
    7. Restart RequestCenter.
    Your customized text should be displayed.

    I've recently come across this information and it was very helpful in changing some of the inline text.
    However, one place that seemed out of reach with this method was the three main buttons on an "Order" page.  Specifically the "Add & Review Order" button was confusing some of our users.
    Through the use of JavaScript we were able to modify the label of this button.  We placed JS in the footer.html file that changes the value of the butt

  • In Drop Down by Index how can i pass default value Dynamically

    Hi Friends,
    In Drop Down by Index how can i pass default value Dynamically.Please help me.
    Thanks in advance.
    Regards,
    Kumar.

    hi,
    if you want the value to be defaulted only the first time you execute the program then write the code which suman has mentioned in the views method
    wddoinit.
    Regards
    Sajid

  • How can I remove default alarm for events in iCal on devices ios?

    Whenever I add an event to my iCal calendar in Mounain Lion it will automatically add one default alert only on my iphone and ipad. These default alarms are not displayed on my macbook or icloud.com
    Default alarms are disabled in macbook, icloud.com, and my ios devices.
    How can I remove default alarm for events in iCal on devices ios?
    Thanks and sorry for my english.
    MacBook Pro, Mac OS X 10.8

    OK, so I have had this issue for the past several months. I think it all started when I upgraded to ML from SL and migrated my calendars and contacts to iCloud. That was a couple months ago. But now I am running 10.8.2, and about two weeks ago I upgraded my iOS devices to 6.0.1.
    I don't seem to be having any issues with events that I create now, but all those old events that were migrated to iCloud a couple months ago, many of those sound alerts on the iOS devices even though there was no alert defined when the event was originally created. I have always had alerts off by default both in iCal and on the iOS devices.
    So here's the question: is there a way to go through and disable all these spurious event alerts? I've been disabling them as the event reminders come up, but it's irritating. It would be nice if there was a way to turn them off all in one shot somehow.

  • How can identify the default currency for a customer?

    How can identify the default currency for a customer?
    I know that this is being determined when you create a sales order for a particular customer, for example, so I could break this process open and find out what it uses. But I thought it worth asking in this forum first.
    Blue

    Hi Gary,
    As per my understanding of your question I am replying , If you are looking some thing else then I request you to please elaborate your query.
    If you see the BP sales area data in transaction BP, In billing tab you maintain the currency for a customer which is default currency when you create a sales order.
    <b>Reward points if it helps!!</b>
    Best regards,
    Vikash

  • How can I Replace a Hard Drive on a 160gb iPod Classic?

    How can I Replace a Hard Drive on a 160gb iPod Classic? I am considering buying an iPod Classic off of eBay which is described as 'broken' and having the 'Red X' showing up on the screen. The seller is starting the bid at a very low price, which raises some concerns for me. For this thread, let us assume that the iPod has a broken hard drive that needs to be replaced in order to function properly. I am assuming that merely 'restoring' it would not suffice. How would I be able to replace the hard drive myself, without bringing it in to a store? I have never fixed an iPod's hardware before, nor a computer or any electrical device. I am a novice at such things. Would I be able to fix it myself without wasting money on a broken iPod and new hard drive? Please provide instructions on how to do so =)

    Hello there,
    Yes, the red X icon is usually a sign of a bad or damaged hard drive. Sometimes, restoring the iPod will resolve the issue, but rarely. Other users were able to smack the ipod against the side of their leg and gain back full functionality of the iPod.
    However, if no such luck with either, your next option would be to replace the drive. For this task, you can either opt to repair and replace the hard drive yourself, or opt to send it into a third party repair business to do the job for you.
    I use the guides at [www.ifixit.com|http://www.ifixit.com> to help me replace broken parts on an iPod. These guides provide excellent step-by-step instructions as well as photos on how to repair any part from an iPod.
    Some other good sites for purchasing repair parts include the following:
    [iDemiGods|http://www.idemigods.com>
    [RapidRepair|http://www.rapidrepair.com>
    [iResq|http://www.iresq.com>
    Lastly, I would also like to remind you that ebay also has several great deals on excellent iPod replacement parts. It's where I purchase a majority of mine.
    Hope this helps.
    B-rock

  • HT5502 AFTER UPGRADING TOMOUNTAIN LION SAFARI 6.0 DOESN"T WORK HOW CAN I REPLACE IT OR UPGRADE IT?

    AFTER UPGRADING TOMOUNTAIN LION SAFARI 6.0 DOESN"T WORK HOW CAN I REPLACE IT OR UPGRADE IT?

    An answer will require more specific information of the problems you are experiencing Mpittas2.
    In general, if you installed any third party anti-virus utilities, get rid of them. They can cause problems like this.
    There is no need to post your question multiple times. If you don't get an answer right away give it some time, a few hours at least, and please deselect your caps lock key. This will increase the likelihood of receiving competent assistance.
    Thanks!

  • How can I replace my IPhone in France?

    How can I replace my IPhone in France? I have bought an IPhone 5 in Paris and now its display is broken and the warranty is expired. Can I ask someone to do the replacement for me there?

    If you bought the iPhone in Paris, and live in another EU country, the warranty and out-of-warranty service will be valid throughout the EU.  If you do not live in the EU, then you must send the iPhone to someone you trust in France to handle the out-of-warranty replacement for you.

  • How can i edit default XML in Poratl?

    How can i edit default XML in Poratl?
    I want make some change on Discussion.xml,but i can't find it and  i  want Edit it, what should i do?
    Thank you very much for your Help!
    Best Regards!
    Han

    all the .XML files will be available in the following path
    project(folder)->dist(folder)->portal-inf(folder)
    in NetWeaver developer studio.
    to edit double click on the xml file and select the source tab in the bottom,you can view and edit the source.

  • I cannot locate all of my tool .tpl files.  How can I replace them?

    I cannot locate all of my tool .tpl files.  How can I replace them?

    You can store your tool preset anywhere you wand.  Each version of Photoshop ships with some Adobe supplied tools presets these are installed in the Tools folder in Photoshop Presets  folder. You can use Search in Finder or Windows File explored to find all *.tpl files on your system.

Maybe you are looking for

  • MakeKeyAndVisible

    I'm having an issue utilizing multiple 'window' objects. The symptom I am experiencing appears to be caused by calling the method 'makeKeyAndVisible' on a window +more than once+. In my example I have three (3) windows and all seems fine calling the

  • Logon load balancing issue

    Hello Experts, We are having an issue with our load balancing. We have 4 app servers ,2 for batch and 2 for dialog. Dialog are used by SICF service for user to login. But the load is goign to the batch servers as well.Batch servers are running with d

  • HT3708 Can I not paste a URL into the field? It keeps beeping at me.

    Whenever I try to paste a URL into the link field, I get the beep alert. Does Apple seriously expect people to type in entire URLs?

  • Is it possible to download a DVD onto an iPod?

    I am trying to import DVD's onto my iPod touch...is this possible to do somehow?

  • Shopping cart having purchase organization problem

    Dear Experts, We are working on classic sceanario with SRM 5.0 integrated with ECC 6.0. While creating shopping cart for direct material we are having an error message as "System SRDCLNT110 (SRM system) of purch. organization Central Purchasing (purc