KeyEventDispatcher Seeing Incorrect Number Of Keypresses

Greetings,
I have a Swing/AWT drawing application (running on OS X) that has a label option. When the user selects the label option, they are allowed to click once on my canvas panel (which resides in an internal frame in a desktop pane) and then type their text. My label class that implements the KeyEventDispatcher correctly gains access to the keyboard input stream through:
DefaultKeyboardFocusManager.getCurrentKeyboardFocusManager().addKeyEventDispatcher(this);
and performs work upon the key events through the dispatchKeyEvent function.
The problem is that when the user types their text, multiple keypresses are received for only one keystroke. Sometimes 6 of the same character are captured, sometimes 3. The keycode for the character, even though it remains the same, can sometimes change. The following is a capture of a user typing "Greetings, this is a test!!!". I have captured the result of each event's getID(), getWhen(), hashCode(), getKeyChar(), and getKeyCode() and copied the output below. As you can see, this is quite wacky behavior. I have totally removed my keyListener, since the focus subsystem was changed. I thought perhaps multiple listerners were picking up the same keypress, but that would not explain two identical keyChars with different keyCodes? I am running the application on Mac OS X. A plethora of thanks in advance for any morsel of assistance.
K7
ID: 401 When: 4711705034502649969 Hash: 13285460 : Capturing keypress - ? - 16
ID: 401 When: 4711705043532228152 Hash: 11958058 : Capturing keypress - G - 71
ID: 400 When: 4711705043532228152 Hash: 4400085 : Capturing keypress - G - 0
ID: 402 When: 4711705046111624448 Hash: 13842387 : Capturing keypress - G - 71
Drawing in GP's paint
ID: 402 When: 4711705048995974160 Hash: 3482471 : Capturing keypress - ? - 16
ID: 401 When: 4711705078944770377 Hash: 6835750 : Capturing keypress - r - 82
ID: 400 When: 4711705078944770377 Hash: 15961328 : Capturing keypress - r - 0
Drawing in GP's paint
ID: 402 When: 4711705082492273778 Hash: 6372179 : Capturing keypress - r - 82
ID: 401 When: 4711705089250275969 Hash: 10754076 : Capturing keypress - e - 69
ID: 400 When: 4711705089250275969 Hash: 4113117 : Capturing keypress - e - 0
Drawing in GP's paint
ID: 402 When: 4711705091518985069 Hash: 3289716 : Capturing keypress - e - 69
ID: 401 When: 4711705095060432565 Hash: 10498262 : Capturing keypress - e - 69
ID: 400 When: 4711705095060432565 Hash: 15002459 : Capturing keypress - e - 0
Drawing in GP's paint
ID: 402 When: 4711705097629585365 Hash: 10740767 : Capturing keypress - e - 69
ID: 401 When: 4711705100858348505 Hash: 15796839 : Capturing keypress - t - 84
ID: 400 When: 4711705100858348505 Hash: 1704781 : Capturing keypress - t - 0
Drawing in GP's paint
ID: 402 When: 4711705103747368994 Hash: 13010541 : Capturing keypress - t - 84
ID: 401 When: 4711705105032219198 Hash: 14365489 : Capturing keypress - i - 73
ID: 400 When: 4711705105032219198 Hash: 12751864 : Capturing keypress - i - 0
Drawing in GP's paint
ID: 402 When: 4711705107618573341 Hash: 11777702 : Capturing keypress - i - 73
ID: 401 When: 4711705110821083493 Hash: 12303100 : Capturing keypress - n - 78
ID: 400 When: 4711705110821083493 Hash: 10194937 : Capturing keypress - n - 0
Drawing in GP's paint
ID: 401 When: 4711705113398804752 Hash: 14741677 : Capturing keypress - g - 71
ID: 400 When: 4711705113398804752 Hash: 13592111 : Capturing keypress - g - 0
ID: 402 When: 4711705114381471795 Hash: 11026476 : Capturing keypress - n - 78
Drawing in GP's paint
ID: 402 When: 4711705116308247812 Hash: 1134930 : Capturing keypress - g - 71
ID: 401 When: 4711705120172816434 Hash: 11339833 : Capturing keypress - s - 83
ID: 400 When: 4711705120172816434 Hash: 7806641 : Capturing keypress - s - 0
Drawing in GP's paint
ID: 402 When: 4711705123400903117 Hash: 4567087 : Capturing keypress - s - 83
ID: 401 When: 4711705125972375198 Hash: 6649557 : Capturing keypress - , - 44
ID: 400 When: 4711705125972375198 Hash: 14418506 : Capturing keypress - , - 0
Drawing in GP's paint
ID: 402 When: 4711705129178686397 Hash: 11604935 : Capturing keypress - , - 44
ID: 401 When: 4711705131433093256 Hash: 13969258 : Capturing keypress - - 32
ID: 400 When: 4711705131433093256 Hash: 1690810 : Capturing keypress - - 0
Drawing in GP's paint
ID: 402 When: 4711705134027049491 Hash: 6559246 : Capturing keypress - - 32
ID: 401 When: 4711705137234584755 Hash: 2180223 : Capturing keypress - t - 84
ID: 400 When: 4711705137234584755 Hash: 9052195 : Capturing keypress - t - 0
Drawing in GP's paint
ID: 402 When: 4711705139823483667 Hash: 2704300 : Capturing keypress - t - 84
ID: 401 When: 4711705140446951857 Hash: 3614661 : Capturing keypress - h - 72
ID: 400 When: 4711705140446951857 Hash: 14279289 : Capturing keypress - h - 0
Drawing in GP's paint
ID: 401 When: 4711705144633675240 Hash: 10526273 : Capturing keypress - i - 73
ID: 400 When: 4711705144633675240 Hash: 3610207 : Capturing keypress - i - 0
ID: 402 When: 4711705145287133039 Hash: 8820986 : Capturing keypress - h - 72
Drawing in GP's paint
ID: 402 When: 4711705148187137907 Hash: 15712776 : Capturing keypress - i - 73
ID: 401 When: 4711705178769645812 Hash: 11067315 : Capturing keypress - s - 83
ID: 400 When: 4711705178769645812 Hash: 15607307 : Capturing keypress - s - 0
Drawing in GP's paint
ID: 402 When: 4711705182000985932 Hash: 16754411 : Capturing keypress - s - 83
ID: 401 When: 4711705190361096824 Hash: 1913382 : Capturing keypress - - 32
ID: 400 When: 4711705190361096824 Hash: 5584739 : Capturing keypress - - 0
Drawing in GP's paint
ID: 402 When: 4711705194230014101 Hash: 3980107 : Capturing keypress - - 32
ID: 401 When: 4711705198091780258 Hash: 272782 : Capturing keypress - i - 73
ID: 400 When: 4711705198091780258 Hash: 12104635 : Capturing keypress - i - 0
Drawing in GP's paint
ID: 402 When: 4711705201643535677 Hash: 1690651 : Capturing keypress - i - 73
ID: 401 When: 4711705204212076443 Hash: 10626673 : Capturing keypress - s - 83
ID: 400 When: 4711705204212076443 Hash: 949406 : Capturing keypress - s - 0
Drawing in GP's paint
ID: 402 When: 4711705206480012449 Hash: 1646156 : Capturing keypress - s - 83
ID: 401 When: 4711705208396802666 Hash: 10625254 : Capturing keypress - - 32
ID: 400 When: 4711705208396802666 Hash: 13829853 : Capturing keypress - - 0
Drawing in GP's paint
ID: 402 When: 4711705211621217152 Hash: 3096997 : Capturing keypress - - 32
ID: 401 When: 4711705215168978249 Hash: 403357 : Capturing keypress - a - 65
ID: 400 When: 4711705215168978249 Hash: 9015524 : Capturing keypress - a - 0
Drawing in GP's paint
ID: 402 When: 4711705216457597287 Hash: 12469859 : Capturing keypress - a - 65
ID: 401 When: 4711705218057032371 Hash: 4466342 : Capturing keypress - - 32
ID: 400 When: 4711705218057032371 Hash: 14197152 : Capturing keypress - - 0
Drawing in GP's paint
ID: 402 When: 4711705222251390058 Hash: 5408640 : Capturing keypress - - 32
ID: 401 When: 4711705224505442582 Hash: 5520561 : Capturing keypress - t - 84
ID: 400 When: 4711705224505442582 Hash: 10564408 : Capturing keypress - t - 0
Drawing in GP's paint
ID: 402 When: 4711705230639428974 Hash: 5068142 : Capturing keypress - t - 84
ID: 401 When: 4711705245772263059 Hash: 13506038 : Capturing keypress - e - 69
ID: 400 When: 4711705245772263059 Hash: 12662230 : Capturing keypress - e - 0
Drawing in GP's paint
ID: 402 When: 4711705248019293311 Hash: 5443901 : Capturing keypress - e - 69
ID: 401 When: 4711705252537996190 Hash: 949587 : Capturing keypress - s - 83
ID: 400 When: 4711705252537996190 Hash: 3534544 : Capturing keypress - s - 0
Drawing in GP's paint
ID: 402 When: 4711705257027514768 Hash: 16000817 : Capturing keypress - s - 83
ID: 401 When: 4711705259938697288 Hash: 12309474 : Capturing keypress - t - 84
ID: 400 When: 4711705259938697288 Hash: 3120077 : Capturing keypress - t - 0
Drawing in GP's paint
ID: 402 When: 4711705262828845206 Hash: 14344544 : Capturing keypress - t - 84
ID: 401 When: 4711705274110446540 Hash: 14662467 : Capturing keypress - ? - 16
ID: 401 When: 4711705285696421468 Hash: 1973183 : Capturing keypress - ! - 49
Drawing in GP's paint
ID: 400 When: 4711705285696421468 Hash: 9826960 : Capturing keypress - ! - 0
ID: 402 When: 4711705288924798061 Hash: 7714809 : Capturing keypress - ! - 49
ID: 401 When: 4711705293100150518 Hash: 16772849 : Capturing keypress - ! - 49
Drawing in GP's paint
ID: 400 When: 4711705293100150518 Hash: 713167 : Capturing keypress - ! - 0
ID: 402 When: 4711705295028021751 Hash: 4845633 : Capturing keypress - ! - 49
ID: 401 When: 4711705299222927046 Hash: 9980573 : Capturing keypress - ! - 49
Drawing in GP's paint
ID: 400 When: 4711705299222927046 Hash: 3916193 : Capturing keypress - ! - 0
ID: 402 When: 4711705300509516712 Hash: 914658 : Capturing keypress - ! - 49
ID: 402 When: 4711705311779360573 Hash: 13999420 : Capturing keypress - ? - 16
- 1001 When: 4711705324982906085 Hash: 15206241 : Capturing keypress -

Try to use somethin like this. Only the Key released event is important for you.
public boolean dispatchKeyEvent(KeyEvent e) {
if( e.getID() == KeyEvent.KEY_RELEASED ) {
System.out.println("event "+e.getKeyCode());

Similar Messages

  • Grey screen and "incorrect number of thread records"

    I think I am in trouble. My eMac will not boot and gets stuck on the great screen with the Apple logo and the spinning windmill. I have followed the instructions in the Apple help article up to but not including "archive and install". I tried the advanced secure boot and the messages I got over and over were "HFSSWAPHFSPlusBTIternalmode: catalog record #30 keylength=34 expected=144 node=15278 File ID=4 volume= Macintosh HD device=/dev/disk 0s 10"
    And
    "Jan31 12:00:35 Launched: /System /Library/CoreServices/Loginwindow.app/Contents/MacOS/Loginwindow Port/dev/console exited abnormally: Trace/ BPT trap"
    And
    Jan31 12:02:13 Launched: Getty repeating too quickly on port/ dev/ console, sleeping"
    I rest the PRAM and NVRAm as instructed.
    I booted from the OSX 10.4 install disk and ran the verify disk and repair disk sequences several times. It did repair a number of things but it kept coming back to "
    Message was edited by: Mont Rigaud Stud
    Itkept coming back to "incorrect number of thread records". Even after running repair disk again several times it came back to the same thing and said
    "the volume Macintosh HD could not br repaired after 3 attempts
    ERROR: the underlying task reported failure On exit
    1HFS volume checked
    1 vOlume could not be repaired because of an error
    Repair attempted on 1 volume
    1 volume could not be repaired"
    What should I do? I am NOT BACKED UP! How do I back up now? Can I usean external Hard drive? I really do not want to lose my photOs, email and business files.
    I am typing my question on my iPhone, so that accounts for the poor capitalization.
    Thanks
    Doug

    Will it boot in Safe Mode? See
    What is Safe Boot, Safe Mode? (Mac OS X)
    http://docs.info.apple.com/article.html?artnum=107392
    Takes a while to run, but it usually "fixes" problems.
    Resolve startup issues and perform disk maintenance with Disk Utility and fsck
    http://docs.info.apple.com/article.html?artnum=106214
     Cheers, Tom

  • Incorrect number of data lines in TST03

    Hi,
    one of our scheduled jobs is being cancelled with no errors but those found on SP12 - Consistency Check:
    Incorrect number of data lines in TST03
    Any idea of what might be happening?
    SM21 reports the following:
    Error 13 for write/read access to a file. File =
    Error at DB commit, return code 016384
    SAP Commit Failed
    Stop Workproc20, PID 9915
    Start Workproc20, 4 times since system startup. PID 10255
    Invalid object name for TemSe object: " "
    Failed to create log for job /SAPAPO/BACKGROUND_SCHEDULING
    Calling program reports invalid handle for TemSe object (magic==X'NULL-ptr')
    Delete session 001 after error 023
    Thanks
    Antonio

    Hi Naveen...
    yes, the problem was solved but it had nothing to do with SAP itself...
    We have our APO system on two servers: the message server (and DB) runs on an iSeries and the application server and LiveCache server on a SuSE Linux machine. This last server has several iSeries shared (NFS) folders mounted and all TemSE objects are created on one of these folders.
    Now the problem is we use a Vision solution for our HA. Whenever Vision is "touching" a file, Linux can't "see" the lock status due to NFS limitations. So, when it is trying to access the same file, a "permission denied" error message is issued to SAP, causing the job to abort and the TemSE object to become inconsistent.
    One solution is to change from NFS to Samba.
    Another one, much faster to implement, is stopping the Vision job during the night period, when those SAP jobs run. Since then, we didn't had any more problems.
    Of course, this is simply a workaround and not a permanent solution!
    Could this be your scenario as well?
    I hope you can solve your problem...
    Merry Christmas and a Happy 2009 for everyone!
    Antonio

  • Incorrect number of subscript accessing external object property loadfile in open event

    Hi
    I used  the following method to  view pdf  OLE Object Control -> Insert Control -> Then I select Adobe pdf reader. After that I wrote the following script in the open event of the form
    ole_1.object.loadfile("H:\document\empdoc.pdf") . But when I run the application the following error is coming
    "Incorrect number of Subscript Accessing external object property loadfile in open event" please can u help.
    With Thanks
    Pol

    Hi Polanchan,
    I've tried the following code in both PB 11.2 and 12.6 on Windows 7 and I do not see the error message you are seeing.
    string ls_filename
    ls_filename = "my.pdf"
    ole_1.object.LoadFile(ls_filename)
    What version of Acrobat Reader do you have on your machine?  I have version 10.1.13.
    Patricia Steinhardt
    SAP Active Global Support

  • Incorrect number on my cell phone from Skype?

    In trying to set up my account I put in the number that was on my cell phone #759-73, and it says that is an incorrect number??? Please check and see if I have two accounts and am using the wrong number or what is happening.

    Let me add to my earlier response.   DO not even attempt to discuss this matter with comcast or their techs. They simply are unaware of the problem and can do nothing to fix it. Call Neustar at the number I gave you in ealrier post..  Tell them the problem and either have them delete your cellphone number from their data base or set the caller id to show city, state and your number.  Deletion is probably better. Tech at Neustar did this told it would take effect in two hours and the problem was gone in 5 minutes. I am sick and tired of disconnects, talking to techs at comcast who barely can speak english, mumble, one told me today to go to the website and disable call blocking from my cell then call  home and then reenable it after making the call.  LMAO!   Yeah, while driving down the road. This afternoon I got a call from a  rather arrogant tech who didn;t want to hear the problem, didn;t undertand the problem and tried to blame the problem on my cell service.  No problem when I call anyone outside of Comcast and it was corected once before .   So the problem is with your cell phone number listing at Neustar.  Since Comcast uses Neustar for their caller id numbers they should be be able to delete or correct entires but apparently cannot.   Good Luck, my days with comcast are limited.

  • Can't repair Macintosh HD - incorrect number of file hard links

    Hi,
    Under Maverick, my computer started to become slow.  I see the spinning wheel frequently.  I upgraded to Yosemite telling myself that the new OS X installation process would clean anything not working properly under Maverick.  However, my computer is still slow.
    I tried to verify the Macintosh HD using disk utility and an error prompted me to repair my hard drive because of an error. 
    My Yosemite is in French : Nombre de liens physiques du fichier incorrect. 
    I think it would translate to incorrect number of file hard links.
    When rebooting using Command - R and verifying my Macintosh HD with the disk utility, it found no error and consequently, the repair function did not help.
    When rebooting and running disk utility, I still have the incorrect number of file hard links error.  I have a MacBook Pro 2012
    1.  Is the error incorrect number of file hard links causing my computer to be slow?  What is this error?
    2.  What should I do to correct this if the disk utility does not find an error when rebooting using command - R?
    3.  I have back-up using time machine, but I'm unsure that I should be restoring these back-up : not sure exactly when the error started and if I restaure a back-up "pre-error", would it correct the error?
    Thanks for your help

    Thank you for the reply! I can't remember what it said after the repair except for the big green letters telling me that the volume appears to be working. I just ran a verify from the install disc again and the message read " the volume appears to be working ok". After that I ran another verify from the hard drive and got the incorrect # of file hard links, volume header needs minor repair, the volume HD was found corrupt and needs to be repaired, Error this disc needs to be repaired. Start up your computer with another disc and use disc utility to repair this disc.
         The computer seems to be running great, I am fully backed up but not sure how concerned I should be.

  • Error message "incorrect number of file hard links" after Lion installation. Please could you advised to solve this problem; my iMac (mid 2010) is working well

    After installation of OSX Lion I have ran the disk utility program and the following error message appears: "incorrect number of file hard links". The program advises to fix the disk by reinstalling the Mac OSX install dvd (Snow Leopard). Please could you advise? Additonal information: the iMac was up-to-date before installing Lion. Thx!

    Martha Mcsherry1 wrote:
    I feel like I'm on a scavenger hunt and it's getting very dark!  You are absolutely correct.  My computer doesn't show my HD in the finder window.  That's been the case for a long time.  At one point, I found a solution and fixed it but then it reverted.
    From a Finder menubar, select Finder > Preferences, then either General (controls what appears on your desktop) or Sidebar (your Finder windows's sidebar) and check the box with your Computer's name, hard drive, etc. 
    I read to hold 'option' and press 'go'.
    On Lion, that allows you to see the Library folder inside your home folder (it's only hidden in Lion).
    I have found the right file and deleted it.  It keeps reintroducing itself so I guess I'll need to delete it from the trash as well?
    No, you've deleted the one that may have been damaged.   As with most preferences files, OSX will create a new one, with default values, when needed, which is what we want.  (Sooner or later, you should empty the trash, but it's not a problem.)
    As mentioned in #A4, you'll have to re-select your Time Machine drive, re-select any of the things that were checked on the Options panel, and re-enter any exclusions.

  • When I restore my Mac with Time Machine and then want to partition my disk, Disk Utility always says incorrect number of extended attributes

    When I need to restore my Mac from a time machine backup and then partition my hard disk (the disk inside the computer not the time machine disk), Disk Utility always says "Incorrect Number of Extended Attributes". I then boot into Recovery HD and run disk repair. The result? "The volume Macintosh HD appears to be OK". So then I reboot into normal OS and try the partition again, still Incorrect number of extended attributes. I have even tried /sbin/fsck -fy in single-user mode but it still says the volume is ok. I have tried partition my disk in the recovery HD and it still fails.
    Can anyone please help me solve this problem?

    Try something stronger, such as DiskWarrior or TechTool Pro.
    iMac refurb (27-inch Mid 2011), OS X Mavericks (10.9.4), SL & ML, G4 450 MP w/Leopard, 9.2.2

  • Incorrect Number error message only started today ...

    Hi there
    Had my N900 since July and this is first time I have had major problem..
    Really weird...I text my wife everyday and have been doing so today as well..but within the last half hour, when I try to SMS her, I get an "Incorrect Number" error message
    I have tried deleteing the conversation and restrarting the phone but problem still there
    I can SMS other contacts
    I can still dial my wife's number
    But for some reason, the SMS for that number is now failing
    Any ideas??
    Thanks
    Solved!
    Go to Solution.

    Turns out three has disconnected phone by accident. So morale of the story is avoid the three network like the plague if you can! Their customer service well and truly sucks!

  • When I check my boot SSD drive using Disk Utility under Mavericks, I often get "Incorrect number of extended attributes" errors.  But if I boot off an external drive and check the same SSD, no errors are reported.  Is this a bug in Mavericks?

    When I check my boot SSD drive using Disk Utility under Mavericks, I often get "Incorrect number of extended attributes" errors.  But if I boot off an external drive and check the same SSD, no errors are reported. 
    This happens not just with the SSD in my Mac Mini, but with another SSD in my MacBook (both now running Mavericks).  So far as I know, all of the kit I am using is in good order (despite the file corruption reports).  So I am beginning to wonder if it could be due to a bug in Mavericks?  Both SSD drives have been formatted to MacOS Extended (journaled) format.  Should I have used a different format, I wonder?
    Has anyone else encountered this issue?
    Does anyone have a solution?
    Or an explanation that might help my investigation of the issue?
    Thanks guys,

    I understand that the Corsair Force 3 is not one of the SSD drives that are supported on Apple Macs. 
    I did try downloading and using Trim Enabler, but the error message came up both when it was off and when it was on.
    I understand that not everyone thinks Trim Enabler is a good program, though there is a new version out now, so I may give it another try.

  • 2009 macbook pro incorrect number of file hard links. repaired and still slow. I replaced the hard drive within the year and it's 1 tb not full. help!

    I have a 2009 macbook pro and I keep it up to date. I replaced the hard drive with a new 1 tb hard drive within the last year. It is not even close to full. The other night I was doing a time machine backup and the spinning color wheel appeared. It would not go away and the only thing I could do was restart the computer. The Grey apple screen appeared and nothing else happens. I restarted in disk utility and verified the drive. It said "incorrect number of file hard links". I repaired it successfully and check the drive as well as the startup drive. All was ok. I restarted my computer and it took forever to come on. It is now one but I can not do anything. The desktop and all appropriate dock items are there but I can not do anything. What should I do?

    It's likely that the startup drive, or some other hardware component, is failing. Back up all data immediately, then run Apple Diagnostics or the Apple Hardware Test.
    Even if the test is negative, you should make a "Genius" appointment at an Apple Store to have the machine tested more thoroughly.

  • Whan some calls me i can see only number, but i have that contact in my iphone. Use, iphone 3g 4.2.1

    whan some calls me i can see only number, but i have that contact in my iphone. Use, iphone 3g 4.2.1
    If anyone knows what to du, please write me!
    TNX

    No.
    You cannot.  Facebook has made their app only compatible with ios 4,3 or higher.
    Your iphone can only go to 4.2.1
    Sorry

  • ORA-02315: incorrect number of arguments for default constructor

    I was able to register the XML schema successfully by letting Oracle creating the XML Types. Then when I try to execute the create view command the ORA-02315: incorrect number of arguments for default constructor is always raised.
    I tried using the XMLTYPE.createXML but it gives me the same error.
    Command:
    CREATE OR REPLACE VIEW samples_xml OF XMLTYPE
    XMLSCHEMA "http://localhost/samplepeak4.xsd" ELEMENT "SAMPLE"
    WITH OBJECT ID (ExtractValue(sys_nc_rowinfo$, '/SAMPLES/SAMPLE/SAMPLE_ID')) AS
    SELECT sample_t(s.sample_id, s.patient_info, s.process_info, s.lims_sample_id,
    cast (multiset(
    SELECT peak_t(p.peak_id, p.mass_charge, p.intensity, p.retention_time,
    p.cleavage_type, p.search_id, p.match_id, p.mass_observed,
    p.mass_expected, p.delta, p.miss, p.rank, p.mass_calculated,
    p.fraction)
    FROM peak p
    WHERE s.sample_id = p.sample_id) AS PEAK107_COLL))
    FROM sample s;
    Can someone help me.
    Thanks
    Carl

    This example runs without any problems on 9.2.0.4.0. Which version are you running? And which statement causes the error message?

  • ui:ContextMenuItem in MXML causes Error 1136: Incorrect number of arguments

    Hello,
    I'm trying to define a context menu declaratively like so:
    quote:
    <ui:ContextMenu id="editChartDataContextMenu">
    <ui:customItems>
    <mx:Array>
    <ui:ContextMenuItem caption="Clear"/>
    </mx:Array>
    </ui:customItems>
    </ui:ContextMenu>
    However, the Flex compiler gives an error for the line that
    reads "<ui:ContextMenuItem ....". (the line in boldface).
    The error is: 1136: Incorrect number of arguments. Expected
    1.
    Needless to say, I have experimented with varying number of
    attributes, but no luck.
    I have googled in vain to find examples where context menus
    are built up using markup; all examples seem to be imperative
    (ActionScript) code, instead of declarative.
    Any ideas?
    Joubert

    I know context menus can be used in limited situations with
    limited functionality in Flex. Don't know if your usage is within
    the ways context menus are used in Flex.

  • How can i see what number and  time a text message i received a text message

    how can i see what number and at what time i received a text message online

    If you are on a regular postpaid account, you can log in to your My Verizon account and see the usage details for your account.

Maybe you are looking for

  • Virtual KF in a Query

    Hi Guys, I have some questions about virtual key figures/Characteristics . Could anyone help me, please? In a query you can change the columns and delete some of those . If you do that the "query" has to recalculate the value of key figure column bec

  • EXIF data filtered when exporting to Flickr

    I've noticed that some EXIF data seems to be filtered out when exporting photos to Flickr via Aperture's built-in Flick exporter. For example, if I export same photo using Flickr's upload page, then using Aperture's built-in Flickr exporter, then re-

  • Channel scale effect over saturation

    Hello, I have a .vi to acquire 8 channels, with a 6062E card and a BNC-2115 board. For each channel, I have created a scale, so that I get physical units. Up to today, I used to read Volts, and then multiply the signal by the sensitivity and add an o

  • Date update in a JTable cell

    Can someone tell me how I would go about displaying the current date and time in a cell and updating it every 5 seconds. I assume I would have to perform a repaint() at runtime every 5 seconds.

  • Sub programs in parallel

    hi I have multiple functions and stored procedures that interact with tables and process some output. Is it good to use DBMS_PARALLEL_EXECUTE to distribute the load ? If a sub program is taking 1 minute to execute on single core, can i expect to comp