How to make right click options disable on JTextArea.

Hi,
How would I make mouse right click options disable on JTextArea.
Can any one help me in this regard.
Thanks.

Bussa wrote:
Hi,
I used JTextArea in my work. If I righy click on this area, a pop up menu is appearing with cut,copy,paste and select All options. I would like to disable all these options. Can u suggest me in this regard.
Thanks.Did you create this PopupMenu yourself? If you did, then you should have access to the JMenuItems used, so you can call setEnabled(false/true) on them to enable/disable them.
If you didn't create the Popup yourself, then you should check if you can obtain the PopupMenu by calling getComponentPopupMenu( ) or some other method to obtain the popup menu and subsequently its menu items and call setEnabled( ) on them.
If the popup menu uses Actions instead of JMenuItems, the same principle applies since Action objects also have a setEnabled( ) method
ICE

Similar Messages

  • Reg: Right click option disable

    Hai Experts,
                        My requirement is that i should not allow user to use the right click and select options from there how can i restrict ?
    what value should be changed in PF-STATUS ?
       OR
    Can any one say me steps to create own Context menu...
    Regards,
    Vikram.S
    Edited by: vikram s on Jul 24, 2008 2:02 PM

    Hi Vikram,
    Check this link for creating a context mernu:
    http://help.sap.com/saphelp_nw04/helpdata/en/e2/5d3bb2e06411d295a900a0c94260a5/frameset.htm
    Check these links also:
    http://help.sap.com/saphelp_nw04/helpdata/en/94/c4a6377cc0c92ce10000009b38f8cf/frameset.htm
    Hope this helps you.
    Regards,
    Chandra Sekhar

  • Help..how to make right click on jtable pleassssssss

    I'm creating a table that need to have a right click on the row
    please help me I really need this in my project....

    look here:
    http://forum.java.sun.com/thread.jsp?forum=31&thread=293211

  • Right Click option

    I have made a video player, now i need to add right click option to the video so it can have option to capture the image and save it.
    If not atleast anyone tell me how to add right click option.

    Set the onMouseClicked variable of the appropriate Node similar to the below:
    onMouseClicked: function(evt: MouseEvent):Void {
        if(evt.button == MouseButton.valueOf("SECONDARY")){
            //do stuff to handle right button click...
        else{
            //do normal mouse click handler
    }

  • How to disable right click option re-size on table column header?

    Hi All,
    Please let us know how to disable right click option re-size on table column header.
    The issue is that when I right click on the column header, the column is selected and the context menu with options like Sort, Columns, Resize Columns, etc.. is popping. we want to disable column  re-size option.
    We are binding the table values programatically (not using Bc4J) and the Jdeveloper version is 11.1.2.2
    Thanks in advance,
    - Vignesh S.

    Hi Gawish,
    Thanks for the reply.
    This will make the particular column frozen and only work for that particular column.
    My use case is that to remove the resize columns option from the context menu or to disable the right click option.
    Making column selection as none will disable the right click option but we need column selection for sorting.
    Is there any other way to achieve this?
    Thanks in advance,
    -Vignesh S.

  • How to disable the right click options in webdynpro applications

    hi
    i want to disble the right click options in the webdynpro applications.
    kindly help me soon.
    thanks,
    gupta.

    Hi..
    Do u got to know how to disable right click option in Webdynrpo application.
    If so, then kindly help me.
    Regards,
    Yugesh A.

  • How can I remove the default right click option of the text Area control?

    How can I remove the default right click option of the text Area control?
    Is there any way to disable this control in any of the text controls available?

    The iPhone does not store email addresses for received mail. The iPhone stores all email addressees for sent mail in a list of previous recipients. The list of previous recipients is not synced with Outlook or any address book, but the list of previous recipients is included with the iPhone's backup which is updated by iTunes as the first step during the iTunes sync process. The auto-addrss feature pulls from your contacts on the iPhone and from the list of previous recipients.
    Different from the Mail.app on a Mac, there is no access to the list of previous recipients on the iPhone to remove a previous recipient from the list, or to add a previous recipient to contacts that is not already entered - not at the present time anyway.
    The only way to purge the existing list at the present time is by restoring your iPhone with iTunes as a new iPhone or not from your iPhone's backup.
    Hopefully access to the list of previous recipients will be included with the iOS 5 update.

  • Acrobat Pro 7: right click option to Open in a New Window

    Hello,
    We are using Adobe Acrobat Pro v7, and we oftentimes like to view PDFs in separate windows.  To do this, the first file can be openeb by double clicking thefile in Explorer, and for subsequent files, we just right click on the PDF and select Open in a New Window.  This works perfectly fine; however, not everyone has the right click option to Open in a New Window.  The DO have the same version of Acrobat, but just not this functionality.  How do we go about getting this right click context added for the others?  Thanks.
    Franki

    Yes.  Everyone is on Windows XP SP2.
    Frank
    x1855

  • Converting DWF to PDF using right click option cuts off right side.

    I have 24x36 dwf files that I need to convert to PDF. (Printing Landscape)
    When using the right click option in explorer, "Convert to Adobe PDF", the conversion cuts off about 6" on the right side of the page.
    (I can "Print" inside my DWF viewer to Adobe and it works fine and I can set my default printer to Adobe PDF and select multiple at a time and it prints fine)
    I currently have Windows 7 and Acrobat XI version 11.0.06.
    How do I fix this?

    You might check the preferences in Acrobat and see if there are settings for DWF files.

  • My right-click option is not working on my click box

    I created a button and applied the right-click option on it. My action is set to continue. When i publish to html my right-click does not work. it only works if you left click.
    Could anyone help. thanks

    Lilbiri
    Im having the same issue Penelope C had  2 years ago with the right-click function. heres the forum thread. i dont know if it was ever solved.
    http://forums.adobe.com/thread/753561?start=0&tstart=0
    It just wont work for me some how.

  • How to make F7,F8,F10 disabled for security?

    Hi alll,
    Pls can any boady tell me ; how to make F7,F8,F10 disabled for security purposes?
    Abdetu.

    Hello Gerd
    Thanks for reply,
    i made a search for the file u mentioned
    FMRWEB; i found it on path C:\orant\FORMS60
    having the following :
    # FMRWEB.RES is the key definition file for webforms. The syntax is:
    # JFN : JMN : URKS : FFN : URFD (whitespace ignored)
    # JFN = Java function number
    # JMN = Java modifiers number
    # URKS = User-readable key sequence (double-quoted)
    # FFN = Forms function number
    # URFD = User-readable function description (double-quoted)
    # JAVA FUNCTION NUMBER
    # 33 = PageUp
    # 34 = PageDown
    # 35 = End
    # 36 = Home
    # 37 = LeftArrow
    # 38 = UpArrow
    # 39 = RightArrow
    # 40 = DownArrow
    # 65 - 90 = Ctrl+A thru Ctrl+Z (These will always have the control
    # modifier explicitly included, as well as any other
    # modifiers that might be used.)
    # 112 - 123 = F1 thru F12
    # 9 = Tab (Ctrl+I, without the control modifier)
    # 10 = Return (Ctrl+J, without the control modifier)
    # JAVA MODIFIERS NUMBER
    # Equal to the sum of the values for the modifier keys:
    # 0 = None
    # 1 = Shift
    # 2 = Control
    # 4 = Meta
    # 8 = Alt
    # FORMS FUNCTION NUMBER
    # The Forms function numbers match the function numbers found in a
    # typical Forms key binding file.
    # USER-READABLE STRINGS
    # The double-quoted strings appear when users click [Show Keys], and
    # are used for this purpose only. These strings can be translated as
    # needed. Note that the strings do not affect what actually happens
    # when end users press a particular key sequence.
    9 : 0 : "Tab" : 1 : "Next Field"
    9 : 1 : "Shift+Tab" : 2 : "Previous Field"
    116 : 0 : "F5" : 3 : "Clear Field"
    38 : 0 : "Up" : 6 : "Up"
    40 : 0 : "Down" : 7 : "Down"
    33 : 0 : "PageUp" : 12 : "Scroll Up"
    34 : 0 : "PageDown" : 13 : "Scroll Down"
    69 : 2 : "Ctrl+E" : 22 : "Edit"
    10 : 0 : "Return" : 27 : "Return"
    76 : 2 : "Ctrl+L" : 29 : "List of Values"
    115 : 0 : "F4" : 32 : "Exit"
    75 : 2 : "Ctrl+K" : 35 : "Show Keys"
    83 : 2 : "Ctrl+S" : 36 : "Commit"
    118 : 1 : "Shift+F7" : 61 : "Next Primary Key"
    117 : 0 : "F6" : 62 : "Clear Record"
    38 : 2 : "Ctrl+Up" : 63 : "Delete Record"
    117 : 1 : "Shift+F6" : 64 : "Duplicate Record"
    40 : 2 : "Ctrl+Down" : 65 : "Insert Record"
    119 : 1 : "Shift+F8" : 66 : "Next Set of Records"
    1005 : 0 : "Down" : 67 : "Next Record"
    1004 : 0 : "Up" : 68 : "Previous Record"
    118 : 0 : "F7" : 69 : "Clear Block"
    66 : 2 : "Ctrl+B" : 70 : "Block Menu"
    34 : 1 : "Shift+PageDown" : 71 : "Next Block"
    33 : 1 : "Shift+PageUp" : 72 : "Previous Block"
    116 : 1 : "Shift+F5" : 73 : "Duplicate Field"
    119 : 0 : "F8" : 74 : "Clear Form"
    122 : 0 : "F11" : 76 : "Enter Query"
    122 : 2 : "Ctrl+F11" : 77 : "Execute Query"
    69 : 3 : "Shift+Ctrl+E" : 78 : "Display Error"
    80 : 2 : "Ctrl+P" : 79 : "Print"
    123 : 0 : "F12" : 80 : "Count Query"
    85 : 2 : "Ctrl+U" : 81 : "Update Record"
    121 : 3 : "Shift+Ctrl+F10" : 82 : "Function 0"
    112 : 3 : "Shift+Ctrl+F1" : 83 : "Function 1"
    113 : 3 : "Shift+Ctrl+F2" : 84 : "Function 2"
    114 : 3 : "Shift+Ctrl+F3" : 85 : "Function 3"
    115 : 3 : "Shift+Ctrl+F4" : 86 : "Function 4"
    116 : 3 : "Shift+Ctrl+F5" : 87 : "Function 5"
    117 : 3 : "Shift+Ctrl+F6" : 88 : "Function 6"
    118 : 3 : "Shift+Ctrl+F7" : 89 : "Function 7"
    119 : 3 : "Shift+Ctrl+F8" : 90 : "Function 8"
    120 : 3 : "Shift+Ctrl+F9" : 91 : "Function 9"
    113 : 0 : "F2" : 95 : "List Tab Pages"
    72 : 2 : "Ctrl+H" : 30 : "Help"
    ------------------------------------end of file-----------------------------------------
    Now if this is the file i have How can i make F7,F8,F10 disabled for security?
    can u clarify to me how can handle this,i am afraid i may do something wrong..!!!
    But how do you want to commit without the shortcut?? What do u mean by a shortcut..?
    Thanks in advance..
    Regards,
    Abdetu.

  • How to make Scroll viewer zoom disable

    how to make Scroll viewer zoom disable in windows store app

    Hi Imtiyazk,
    Thanks for sharing the solution, should help others have the same issue.
    --James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I don't seem to be able to right click on the macbookair mousepad; how do i right click?

    How do I right click with the MacBook Air using the mousepad?

    Silly rabbit wrote:
    Hold down the shift key
    On yours it's the SHIFT key?
    Out of the box, most Macs use the "fn" key in concert with the trackpad tap to perform right clicks.
    On all three of my Macs, it is the fn key that is used. The shift key does nothing in regard to trackpad clicks, except It does however make all text selected to the right of the cursor.

  • How do I right click on a Macbook mid 2009 13"? It does it randomly sometimes and I don't know how or what I'm pressing!?!?

    It's weird, sometimes right click works on adobe flash chatrooms because the settings button comes up. I don't know what I'm pressing or touching to make right click work but it sometimes randomly works.

    Hi Achilles,
    See the previous replies on how to configure a trackpad (or mouse) in System Preferences for a right click (secondary click). I gave up on that and I now use control click. It does the same thing and is easier for me. Press and hold the control key, then click the trackpad. That brings up the contextual menu:
    Regards,
    Ian

  • How do i right click when a red line appears under a misspelled word?

    i need help. im new to pages, and when i misspell a word a red line shows up underneath just like in micrsoft word, but the problem is i dont know how to correct it. how do i right click to view the correct spelling?

    Double-click to highlight the word & then right-click just as you would anywhere elese. Suggestions will be at the top of the list. Many times there are no suggestions.
    Of course, make sure secondary click is turned on in the mouse preferences in System Preferences.

Maybe you are looking for

  • How do I separate the content of two iTunes accounts on one PC running Windows 7?

    Hello.  I have a dilemma that has been going on for years and am hopeful that someone can outdo the staff at the Apple Store Genius Bar who, after trying multiple times, could not solve this problem. This is a doozie, so get comfortable... My wife an

  • IMac late 2011 has crashed and now won't boot up

    The iMac has been fine but started to lag, so did a restart and the grey screen with the rotating circle. Tried putting putting discs in but it will not restart from discs and I have even tried using a usb keyboard. Cheers wayne

  • I can't get my applet to work in HTML

    I have written an applet that works perfectly OK when I run it at the command line. However, if I try running it from an HTML file it just doesn't work. I get an 'Applet ImageApplet notinited' message in the bar at the bottom of the page. I assume th

  • Booting to Darwin....PLEASE HELP!!!

    My computer goes to black screen with white lettering. I have followed some instructions I found in an older post.... If you are unable to login, start in Single User mode by holding down the Command (Apple) key and the 'S' key as you reboot (see Mac

  • IDD 6 asks to replace every time i save a document.

    hi every one my problem is that when i open a new document in idd and try to save it, it always "saves as" even when i click "save" and it asks to replace the already saved .idd doc. its the same thing even for a new .idd file or an older one. i trye