How to use Ctrl+X

Hello friends
I want to trap Ctrl+x to achieve some short key, I have written this code but it is not working. In this code if we change isControlDown() to isAltDown() or isShiftDown() then it is working for Alt and Shift key but not for Control Key.
addKeyListener(new KeyAdapter() {
public void keyPressed(KeyEvent KEv) {
if(KEv.isControlDown() && KEv.getKeyCode() == KeyEvent.VK_X) {
                         System.out.println("Ctrl+X");
Please help me, how to use Control Key?

hello... I am not sure if this solve your problem but... it is not this
if(KEv.isControlDown() && KEv.getKeyCode() == KeyEvent.VK_X)
it this
if(KEv.isControlDown() && (KEv.getKeyCode() == KeyEvent.VK_X))
if not, please post the message.

Similar Messages

  • HT201612 how to use ctrl+alt+delete to restart with boot camp

    how to use (ctrl+alt+delete) to restart?

    You press all the keys (ctrl+alt+delete) at once
    Some information
    In a personal computer with the Windows operating system, Ctrl-Alt-Delete is the combination of keyboard keys that the computer user can press at the same time to terminate an application task or to reboot the operating system (have it shut down and restart itself). In Windows 95 or any later systems, Ctrl-Alt-Delete brings up a window that allows a user to see the status of all currently running programs and to terminate any of them, and also offers the options of shutting down, restarting, and so on (the specific options vary slightly with the particular version of windows). In Windows 95 or 98, if Ctrl-Alt-Delete is pressed a second time or twice in a row quickly, the operating system closes all programs that are running and then restarts.
    When the operating system seems to hang suspended while waiting for an application program to continue, a user is also left without a way to regain control of the system. The Ctrl-Alt-Delete key combination allows the user to terminate the "hung" application and, if that doesn't work, to reboot the system. The system can also be restarted using the mouse to select Start-->Turn Off the System-->Restart. However, Ctrl-Alt-Delete sometimes works when the menu option doesn't.

  • How to use Ctrl + -- or Ctrl + -- key to act as Tab or Tab + Shift

    In JDK 1.4, I try to use Ctrl + --> key to act as Tab key, and use Ctrl
    + <-- key to act as Tab + Shift key, I would like to find a solution
    for whole application instead of adding key listener for each individual
    component, how to implement it easily? Any suggustions? Thanks!

    Not sure if this will help, but you can listen for all AWT Events by adding a AWT Listener to you class. Here is an example that listens for MouseEvents:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    class TestEventQueue extends JFrame
         public TestEventQueue()
              Toolkit.getDefaultToolkit().addAWTEventListener( new AWTEventListener()
                   public void eventDispatched(AWTEvent e)
                        System.out.println(e);
              }, AWTEvent.MOUSE_MOTION_EVENT_MASK + AWTEvent.MOUSE_EVENT_MASK  );
         public static void main(String[] args)
              JFrame frame = new TestEventQueue();
              frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
              frame.setSize(200, 200);
              frame.setVisible(true);
    }

  • How can I set or reset the page that is loaded when I open a new tab using Ctrl t ?? by

    I recently downloaded a program that has, as an undesired additional action, apprently setup Yahoo as the page that opens by default when I open a new tab using <Ctrl> <t> (or the <+> symbol on the tab bar). This is aggravating to me, particularly as I have not been able to find a way to stop it occurring.
    I expect that it is buried somewhere in my profile, but I also have not found a way to explore or edit the contents of my profile.
    There is a JScript script file called "user" in ...\profiles\4g4vpust.default that I suspect is associated with the behaviour, but renaming it achieved nothing.
    Prior to this, my new tabs used to open as blank pages, i.e. did not load any URL and I was happy with that. How can I get back to that state?

    Did it add the freeze net assistant add-on? That add-on is known to do this. If you have that add-on you can uninstall it Firefox should revert to the default behavior.
    If you do not have that add-on, another add-on will be causing this, you can use the procedure in the following link to identify what one - https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • How do i open a new tab similar to using ctrl+k in ie?

    how do i open a new tab similar to using ctrl+k in ie?

    Try Ctrl+t
    Most of the shortcuts should be listed on the full menus. To display the classic menu bar, tap the Alt key or press F10.
    Oops, sorry, Ctrl+k duplicates the current tab. To do that in Firefox, click in the URL of the page and press Alt+Enter.
    There also might be an add-on that creates a more convenient method.

  • On certain web sites(with java applets embedded or rich content),sometimes browser hotkeys are beeing used with other functionality (eg.: youtube uses ctrl + tab for sliding between player controls).How can I prevent this?

    On certain web sites(with java applets embedded or rich content),sometimes browser hotkeys are beeing used with other functionality (eg.: youtube uses ctrl + tab for sliding between player controls).How can I prevent this ?

    Thanks for posting this!
    I would only mention that your definition is incomplete for this -
    Contextual selector A type of Style Sheet Selector that
    and that it's most often referred to now as a Descendent selector, not a contextual selector.  It's basically the same as the Compound selector that you have already defined....

  • How to use JList's ensureIndexIsVisible and multiple selection using CTRL

    Hello everyone. I am stuck on how to use JList's ensureIndexIsVisible() method and to also allow multiple rows in the list to be selected. Currently, when I begin typing a number stored in the list (i.e. 10001) the focus will go to that row; however, when I press the CTRL key and begin typing another number (i.e. 30001) the focus never goes to the new row. I have a suspicion that I need to cancel out the CTRL key somehow when typing the numbers but also need to keep the knowledge that the CTRL key is pressed to allow for multiple selection. Thanks in advance for your help!
    Regards,
    Will

    Hello everyone. I am stuck on how to use JList's ensureIndexIsVisible() method and to also allow multiple rows in the list to be selected. Currently, when I begin typing a number stored in the list (i.e. 10001) the focus will go to that row; however, when I press the CTRL key and begin typing another number (i.e. 30001) the focus never goes to the new row. I have a suspicion that I need to cancel out the CTRL key somehow when typing the numbers but also need to keep the knowledge that the CTRL key is pressed to allow for multiple selection. Thanks in advance for your help!
    Regards,
    Will

  • How many of you use CTRL + Enter to send email from Outlook

    It's a much faster option...and you don't have to grab that pesky mouse!

    I was working this morning and I asked my fiance if she used CTRL + Enter to send email from Outlook and she was not even aware that was an option. I have been using it for years and I wondered how many of you SpiceHeads use it as well?
    This topic first appeared in the Spiceworks Community

  • How to use Keystroke Ctrl Right for button

    Hi all,
    I am a new user to swing .I am facing some problems while implementing the following.I have a tree table .I have one listener class which is listening the tree selection.I have one button for which I want to use ctrl right arrow as accelerator .I have added the keystroke for this.
    It is working fine.But when I am selecting any iitems from the tree the listener class is listening it.i am passing the tree and the button there.But the keystroke for the button is not working.Please helpme to solve this.
    thanks

    I'm guessing the button accelerator is not working because the tree has the
    input focus. You might want to try using the WHEN_IN_FOCUSED_WINDOW
    input map to set up your accelerator binding.

  • How can users who have Acrobat Reader only save scanned pdf files so that the text on them is searchable using ctrl-F?  I just use the recognize text with ocr feature in the full version of Acrobat and this seem to do the trick. Reader doesn't work!

    Our users have scanned pdf files they want to be able to search using ctrl-f.  I got them to be searchable by doing a recognize text using ocr with Acrobat Professional vesion 8.  They want to know if they can make the files searchable with Acrobat Reader only or if they need the full Acrobat Professional software to make the files searchable.
    Thanks for the help!!
    Ken K. - 2191

    To clarify a bit they need to have Adobe Acrobat, not Adobe Reader. Reader has not been associated with the Acrobat name for 3 or more versions. The process you are asking about is a creation process - the purpose of Acrobat - and NOT a reading feature.

  • I can't open a new tab using Ctrl+T or by clicking on the + symbol. I can, however, open a new tab when holding down Ctrl and clicking on a link. How can I fix this please?

    I used to be able to open a new tab using Ctrl+T but that has stopped working. Having I accidentally changed something?

    Disable the Ask Toolbar.

  • Hi. After I have loaded a picture into Photoshop some of the menu tools are greyed out and I cannot use the keyboard short cut, for instance I cannot use Ctrl   T to enter free transform mode. Also the toolbar is so small I cannot see the icons without ge

    Hi. After loading a picture into Photoshop some of the menu tools are greyed out and I cannot use the keyboard short cuts, for instance I cannot use Ctrl + T for free transform, how do I resolve this problem. In addition the tool Icons are so small I have to get close to the screen to see them, is there anyway the Icons can be made bigger without reducing the resolution of the screen.
    Thanks
    Derek

    Are you working on a background layer? If so, Ctrl + T will not work. Press Alt and double-click your background layer to convert to a normal layer (or right-click BG layer and select Layer from Background) and try again.
    If you're working in Photoshop CC 2014 you can go to Preferences > Experimental Features and tick "Scale UI 200% for high-density displays" to make your buttons and icons larger.

  • HT1208 Where do I find a tutorial about how to use the new iTunes? I have version 11.1.3 (8). I looked on the Apple web site but only found info extolling the virtues of iTunes, not how to use it.

    Where do I find a tutorial about how to use the new iTunes? I have version 11.1.3 (8). I looked on the Apple web site but only found info extolling the virtues of iTunes, not how to use it.

    Use it the same way as previously.
    ctrl B shows the menus.
    ctrl S shows the sidebar.
    What else do you need help with?

  • After navigating (sometimes downloading pictures, sometimes not) for approximately 10 minutes, I can no longer see contents of drop down menues, then Firefox freezes up and I have to use Ctrl/Alt/Delete to end my internet experience.

    After navigating (sometimes downloading pictures, sometimes not) for approximately 10 minutes, I can no longer see contents of drop down menus, then Firefox freezes up and I have to use Ctrl/Alt/Delete to end my internet experience.
    == This happened ==
    Every time Firefox opened
    == After upgrading to 3.6

    Step by step, how did you arrive at seeing this agreement?

  • How to use Print Screen function (part deux)?

    The previous thread for the Print Screen function has been marked as read only, and won't allow any replies. I tried all of the suggestions (PrtScr, CTRL + C + PrtScr, etc.) and then CTRL V into MS Paint, but Print Screen still doesn't work on my machine.
    I'm running Win 7 on a HP Pavilion laptop cv7-6b32us. I suspect there's a switch somewhere in Win 7 or HP that allows the key to be turned off. I know of this because my previous employer did not want anyone doing print screens due to HIPAA violations. Thus, the functionality was turned off. Those of us in I.T. were provided a third-party software that aloowed us to do the same function, but it was not released to the physicians or nursing staff. If I have to, I'll go out and buy the software. I really need this functionality for a class I'm taking.
    Thanks!
    This question was solved.
    View Solution.

    Kurt, welcome to the forum.
    Here is a video to show you how to use the Snipping Tool:
    Please click the "Thumbs Up+ button" if I have helped you and click "Accept as Solution" if your problem is solved.
    Signature:
    HP TouchPad - 1.2 GHz; 1 GB memory; 32 GB storage; WebOS/CyanogenMod 11(Kit Kat)
    HP 10 Plus; Android-Kit Kat; 1.0 GHz Allwinner A31 ARM Cortex A7 Quad Core Processor ; 2GB RAM Memory Long: 2 GB DDR3L SDRAM (1600MHz); 16GB disable eMMC 16GB v4.51
    HP Omen; i7-4710QH; 8 GB memory; 256 GB San Disk SSD; Win 8.1
    HP Photosmart 7520 AIO
    ++++++++++++++++++
    **Click the Thumbs Up+ to say 'Thanks' and the 'Accept as Solution' if I have solved your problem.**
    Intelligence is God given; Wisdom is the sum of our mistakes!
    I am not an HP employee.

Maybe you are looking for

  • Record one thing whilst playing another

    Audigy 4? and XP?Arggggg,? i have used a turtle beach for so long, i didnt realise that the soundblaster stuff had changed its methodology, and feeds off of microsofts trash so highly (direct show/play) with the turtle beach i was always able to sele

  • Is the IPod Nano 6th Generation Apple's least reliable product?

    Do apple have a product that is less reliable than the IPod nano 6 G? Do any companies have less reliable products than the IPod nano 6 G? If so, what are they? I got my 6th replacement nano 6G (7th nano 6G since February) at the beginning of July. 

  • How to changed the Cost Center Date

    Hi All, I have an issue. Cost center is created which have a valid date from 10.01.2009. Upon checking my set up in the SAP my default date format it is DD.MM.YYYY. It have mistakenly inputted a different date instead of October 1, 2009 it inputted J

  • Consumer replica is not enabled

    Can i get help to enable and initialze replica on sun directory server 5.2? I'm getting these error when i try to enable replication as a consumer... [08/Oct/2007:05:50:35 -0400] - ERROR<8237> - Replication - conn=-1 op=-1 msgId=-1 - Internal error C

  • Sum on a internal table

    Hi All, I have internal table like this. Field1      Field2       Field3 a                 1                   5.000 b                 1                   5.000 b                 1                   3.000 b                 1                   10.000