HOWTO Get the text of "combo box" and "labe" controls with JavaAccessBridge

HOWTO Get the text of "combo box" and "labe" controls with JavaAccessBridge.
Please help,
I'm trying to use the Java Access Bridge (JAB) 2.1 to get the text in Java Applet controls. I've been able to use the sample code in AccessInfo.cpp sample that comes with JAB to get text from "text" controls in a Java Applet. To clarify, I am referring to the "role" in the AccessibleContextInfo struct being set to "text" or "combo box" or "label".
The problem is, when I use the AccessInfo.cpp sample to get text from a "combo box", the accessibleText data member comes back as FALSE, and thus any of the JAB text functions like GetAccessibleTextInfo fail to get any text information from "combo box" or "label" controls.
I've also tried GetCurrentAccessibleValueFromContext on the "combo box" and "label" controls, but the text returned is empty.
Can anyone help?

I have new information in regards to this issue. A contact from Sun did get to me in email and relayed that that "label" objects store their text in the "name" data member of the AccessibleContext structure. This was a big help.
But I'm still stuck trying to get information from "combo box" and other controls, like "push button". The contact said, the Java Access Bridge does not provide all the information because it is already implemented by other interfaces like AccessibleComponent, AccessibleAction, or AccessibleSelection. The contact did not allude to whether these opther interfaces can be used along side the Java Access Bridge or not. So, I'm left a step closer to the goal, but still stuck without the full solution.
Can one take the Java Access Bridge functions, like say those used in the Ferret sample, and close the gap to get text back from "combo box", "push button", and other controls by using some other API in conjunction?

Similar Messages

  • When and How to get the Text.ScrollPos value of a String control when scroll bar position changed

    Hi, 
    I'm working on a feature triggered by scroll bar position of a string control changed.
    But I could not find a good way to catch the scroll bar position changed event, 
    the scroll bar is controlled manually by mouse down → mouse move → mouse up, I want the get the Text.ScrollPos value when user mouse up, and compare with the maximum value.
    But the problem is,  mouse up on the scroll bar could not trigger String: Mouse up event!
    So I have to get the Text.ScrollPos continuously in the background in Timeout event, but I think it’s not efficient.
    Do you have any better idea on when to get the correct destination value of Text.ScrollPos?
    I plan to store the value of Text.ScrollPos in the bottom(maximum value) in a shift register, then compare the current Text.ScrollPos value with the max one.
    If it comes close to the bottom(90%~100% of the maximum value), then the close to bottom LED will turn on.
    Attachments:
    scroll bar pos changed.vi ‏15 KB

    Hello Cecilia,
    I don't think there is any build-in event for this.
    One solution would be to create your own user event at the initialisation of you main and launch a thread which is going to be pulling the value of your scrollbar position:
    Then you can build your main as if they were a scrollbar move event.
    And dont forget to close the thread and destroy the event at the end.
    Hope it helps.
    Attachments:
    Scrollbar event.PNG ‏10 KB

  • How do you get the text box text properties dialog box to appear on a MAC?

    how do you get the text box text properties dialog box to appear in Adobe Reader XI on a MAC? I know windows is Ctrl-E but can't figure out what to hit for Mac.

    Right-click the toolbar and you should find it there (including the short-cut, which is probably Cmd+E).

  • TS3297 Every time I open iTunes to listen to music, not access the iTunes Store, I get the password sign in box, over and over again. When I try to access the iTunes Store it does not except my password. This has happened since the last update.

    Everytime I open iTunes to play music, NOT to access the iTunes Store, I get the password sign in box for the iTunes Store. If I click cansel the box pops up a second time.
    When I try to sign in to the iTunes Store it does not except the password and pops up the sign in box afain,and again endlessly.
    This started happening about two weeks ago.

    if itunes will not run, you probably have mangled windows badly
    one feature of windows 8 is the refresh that saves libraries,
    because you are using windows 7, you will need to backup all files to another storage device

  • I recently bought a new macbook pro and set it up using the migration assistant and my mac mini.  I can't get the text message forwarding feature to work with both computers.

    I recently bought a new macbook pro and set it up using the migration assistant from my mac mini.  I can't get the text message forwarding feature to work with both computers.  It keeps saying that I only have 2 devices setup, my iPad and my macbook pro.  When I mess with the setting on my mac mini, it goes from saying that that is one of the devices to my macbook pro being the 2nd device.  I think that something happened as a result of my using the migration assistant and now it thinks that my macbook pro and my mac mini are one and the same computer.  Any ideas?

    Thanks, Sig.
    The old computer is a 2.6 Ghz Intel Core 2 Duo
    The new one is a 2.3 GHz intel core i7
    In going over this, thanks to "tallking it out" with you, I did discover the Text Edit problem.  Because I've still been unable to get the new computer text size (fonts or whatever) to match the old computer, I did not notice that the curser is now different--the line midway down the curser has to be placed on the line I am working upon, otherwise the edits go elsewhere on the page.  Now, with a bit of difficulty, I am able to get Text Edit to work correctly.
    If you have any ideas as to why my menu bar and Text Edit type are still so slow, I'd love to have them. 
    (I went through the process you suggested earlier, re my Trackpad preferences, and found no improvement.)

  • I'm having problems (1)selecting onscreen text, (2) having problems resizing menu boxes and selecting menues with the cursor. I'm not able to select menus and move them. I'm not sure how to correct this.

    I'm having problems (1) selecting onscreen text, (2) resizing menu boxes and selecting menues with the cursor. I'm not able to select menus and move them. I'm not sure how to correct this.

    1) This is because of software version 1.1. See this
    thread for some options as to how to go back to 1.0,
    which will correct the problem...
    http://discussions.apple.com/thread.jspa?threadID=3754
    59&tstart=0
    2) This tends to happen after videos. Give the iPod a
    minute or two to readjust. It should now be more
    accurate.
    3) This?
    iPod shows a folder icon with exclamation
    point
    4) Restore the iPod
    5) Try these...
    iPod Only Shows An Apple Logo and Will Not Start
    Up
    iPod Only Shows An Apple Logo
    I think 3,4, and 5 are related. Try the options I
    posted for each one.
    btabz
    I just noticed that one of the restore methods you posted was to put it into Disk Mode First rather than just use the resstore straight off, I Have tried that and seems to have solved the problem, If it has thank you. previously I have only tried just restoring it skipping this extra step. Hope my iPod stays healthy, if it doesnt its a warrenty job me thinks any way thanks again

  • Good morning a few weeks ago  I send the request for the replacement program of my ipod nano 1st generation and they sent me the shipping box but I did not get the label to go back,  and I can not  return it , i need to you sent me again the box for retu

    Good morning a few weeks ago  I send the request for the replacement program of my ipod nano 1st generation and they sent me the shipping box but I did not get the label to go back,  and I can not  return it , i need to you sent me again the box for return the ipod

    Best thing would be to call Apple up again, and let them what has happened and they'll help you!

  • Iphone has a black line around the "swipe to access" box and i can't get it to turn on"

    iphone has a black line around the "swipe to access" box and i can't get it to turn on"

    Triple press the home button.

  • I have Windows 7 and PS Elements 10 and can't get the text button to work properly.  What can I do?

    I have Windows 7 and PS Elements 10 and can't get the text button to work properly.  What can I do?

    Try selecting the T tool and then doing a reset (see image below)

  • Problem with combo boxes and the reset button in certain situations

    Hi Everyone,
    i have a problem to make the reset-button function properly in an what-if analysis dashboard.
    The dashboard uses two combo boxes that are not visible at the same time. In my application the second combo box only appears when a dedicated menu (label based menu button) has been activated.
    So i have combo box 1 when menu A is active an dand combo box 2 when menu 2 is active.
    After starting the dashboard initial values are fine. If you then directly change to menu 2 (seeing combo box 2 with
    the correct default value) and press the reset button, the dashboard returns to the initial view, showing
    the menu 1 with the correct default value. If you now switch back  to menu 2, you will see, that the combo box 2
    is empty (i.e. nothing selected).
    I also tracked the destination cells for the combo box value results as well as the source cells for the "selected item" and the
    destination cells for the "Insert Selected Item". All this values seem to be correct. Therefore i assume that
    this is an issue of event handling. Maybe the combo box 2 does not refresh its selected value because it is already
    invisible when the values are restored.
    This case can easily be simulated by placing two combo boxes and a push button (that changes the visibility of
    the combo boxes) and the reset button on the canvas.
    Maybe someone can help. I am able to provide a test xlf, if neccessary.
    Thanks,
    Oliver
    P.S. I am using Xcelsius SP4 (Version 5.4.0.0)

    Hello Debjit_Singha_86,
    thank you for your support. At the moment i have the following setting:
    label based menu
    - General: Insertion Type "value" from a list of ID's for the menu-items to a dedicated cell (current menu ID, say tab1!$A$1)
    - Behavior: Selected item (position) fixted to item 1
    hidden combo box
    - General: Insertion Type "position" to a dedicated cell with the current choice (say tab1!$B$1)
    - Behavior: Selected item (position) to the same cell (tab1!$B$1)
    Can you give me a hint on how to connect the two components according to your solution, so that the label based menu sets the default for the hidden combox box only in case, that the reset button is pressed?
    Thanks,
    Oliver

  • Tried opening my Mac in safe mode SMS mode. And pram mode. It acts like it is going to start up the gets about 10 percent through the grey start up box and then suts down

    Tried opening my Mac in safe mode SMS mode. And pram mode. It acts like it is going to start up the gets about 10 percent through the grey start up box and then shuts down. Any other thoughts?  Thanks

    Douglaslouis,
    which model Mac do you have, and which version of OS X is installed on it?

  • Howto to get the year timestamp in syslog and logadm files

    5.10 Generic_141414-10 sun4u sparc
    Howto to get the year timestamp in syslog and logadm
    We have to keep logs files for a long time, I was exploring logs in /var/adm/secure and noticed that log files over a year old did not have a year time stamp, they are in this format:
    Nov 12 09:09:16
    And on the face of it. /varlog/syslog is the same, I thought no problem, there will be something in syslog.conf or logadm.conf I change and it will be fixed, but I cannot find any options to change this, how do I get the year in my log files?
    The "date" command does output the year:
    Friday, September 14, 2012  7:57:36 AM

    My guess is that the fields in a message logged by syslog are fixed, so you can't add a field to it.
    The reason for this is simply that there might be other applications parsing your syslog messages, or there might be other systems syslogging to your system, and that would break if you would add fields.
    The easiest workaround is probably to keep better track of your logs by either implementing an annual rotation of them from crontab, or log the date using the "logger" command on a regular basis.
    A third option would be to look at syslog-ng or rsyslog, which is more flexible when it comes to storing logs, and among other things can store them into a SQL db..
    .7/M.

  • Why do I get the text notification when still in the text and someone responds?

    When I am texting with someone and the text is still showing on the screen I get the text notification every time they respond.
    I have my text tone set to tri-tone, reminder alerts to none and vibrate off.
    It wasn't always like this and it's driving me nuts.
    Thanks for any help you can give me.

    Someone answered in another thread.  They told me to turn the phone off and wait a minute or 2 before turning it back on and it worked!  Just thought I would share in case anyone else was having this problem.

  • HT5622 My mom keeps on getting the texts my friends send to me and I don't know what to do!

    my mom keeps on getting the texts that my friends send me and I don't know what to do!

    Are you both sharing the same apple id?  If you are, then this is the reason.
    ON both devices - go to settings - message - send&receive - remove or uncheck the apple id. \
    Do the same for start a new convo.

  • Embedded Fonts a Combo Box and complete madness

    I have a combo box that has an array of fonts loaded into
    them, not here is my problem. For some reason, when i select the
    fonts in the array, some of them change and some of them dont. I
    have created font symbols like instructed in the live docs, but i
    dont get why they arent showing up..
    i.e. I have 7 fonts loaded into this combo box and i can
    select Arial Bold and my text field will show the text in arial
    bold, but when i select hobo, i get some substitute!
    here's my code, maybe you guys will see something i
    haven't.. the fonts in particular i am having trouble with: Bookman
    Old Style, BrushScript and Hobo.

    there are many points/issues here. here are some:
    1. Your array called fonts contains eight strings such as
    'new Arial()', whereas i think what you were trying to achieve here
    is to create references to the fonts in the library. to do this
    remove the quotation marks.
    2. To be able to create references to the fonts in the
    library, ensure that the font symbols in the library contain class
    names, with base classes of flash.text.Font. do this by selecting
    'Linkage' on your library fonts.
    3. Ensure that your text field is set to embed fonts - either
    in authoring, or with actionscript
    eg.outputTB1.embedFonts=true;
    4. you set up fonts_array with eight font names and then in
    your for loop, you again add eight fonts to this array. this is
    redundant.
    5. in the for loop you have the line: fonts_array.push(new
    String(fonts[ i]));
    this appears to be an attempt at converting a reference to a
    font into a font name. this isn't going to work. if you had set up
    references to fonts to begin with (see point 1), and this line
    wasn't redundant (see point 4), you would extract the font name
    like so: fonts_array.push(fonts[ i].fontName)
    6. maintaining two arrays of fonts is unecessary. i would
    recommend just maintain your fonts array with references to fonts,
    and extract font names from these references. this would look
    something like the code attached below.
    7. One last thing - i notice that you have at least two of
    your fonts - arial and arial bold, probably have different
    formatting. if some are bold and some are not, you will need to
    specify the bold property also. eg. font.bold=true

Maybe you are looking for

  • Ipod Nano Locked Up PLEASE HELP!!!

    Ok, I purchased a second generation 4gig green Ipod nano on Monday. For some strange reason today it locked up. Now it refuses to work at all. It is stuck with the backlight on and the music paused. I do not know what I did worng or if it is my Ipod.

  • Self secured page not working in multiple sessions of same browser

    Hi I have created a selfsecured page by making security mode of page 'selfsecured' and adding validateParameter() in page controller.I didnt do guest user/resp setup as I want user to manually provide user id and choose responsibility,XLA_LINESINQ_GL

  • Connecting to Snow Leopard iMac via iPhone?

    Anyone know of an app to allow remote desktop login/access to an iMac from your iPhone?

  • Photos on my ipad mini.

    I have managed to transfer photos from my PC to my ipad mini (can't remember how) but now I am unable to remove them. I thought I'd found the answer in a previous thread but when I look at itunes left side drop down menu I don't see a "photo tag" onl

  • How to add in the profile

    hi to all this is our requrement parameter: abap/fieldexit, value YES how to add my parameters field regarding raghu bhupathi.