I forgot the mention, even with the accessibility kit I am unable to inspect the component tree with Spy++ or similar tools. So not only is it invasive and fragile (need to redistribute an up-to-date JAB, install, restart etc.) it also does not seem to work on either XP nor Vista. Swing always had its issues, sadly with JavaFX taking the limelight and resources, I would not count on this improving. Sorry mate.
/Casper On 25 Jun., 17:42, Robin <[email protected]> wrote: > Yep, Eclipse works fine. > > Swing does supposedly support accessibility although obviously this > takes a bit more work with there being no native components involved. > The JavaDoc shows various swing components implementing Accessible. > It's one of those things I'd sort of expect to work out of the box, if > it doesn't it kind of shoots swing in the foot for any serious desktop > development. For this reason I can't believe it's not possible, even > if you do have to jump through a few hoops, possibly even flaming > ones. > > thanks anyway. > > On Jun 25, 4:30 pm, Casper Bang <[email protected]> wrote: > > > Ouch, that's a tough one. As I'm sure you're aware, Swing is > > simulating native widgets (at least non-heavyweight stuff) so even if > > it may look like a generic File chooser, it isn't. A good example of > > your problem would be to launch Spy++ that comes with Visual Studio > > and try to capture components. If I try this with a generic Windows > > application, I get a handle and can see the component class to be > > ToolbarWindow32. If I try to do the same with a Swing application, all > > I get is the top-level heavyweight component called SunAwtFrame. > > > A screen reader would work by walking the native Windows component > > tree and issue appropriate calls to GetWindowText etc. so just as the > > Spy++ exercise above demonstrates, all it would be able to get to is > > the SunAwtFrame and its caption. > > > This is one big reason to prefer SWT apart from its speed. Out of > > curiosity, can the screen reader handle Eclipse? > > > /Casper > > > On 25 Jun., 16:53, Robin <[email protected]> wrote: > > > > Has anyone tried using the java accessibility stuff. We have a java > > > swing app we sell and are looking into accessibility, specifically > > > support for screen readers. A guy I work with has asked this question > > > on stackoverflow, but we're both a bit baffled as to what could be at > > > issue. > > > >http://stackoverflow.com/questions/1043757/how-do-i-make-vistas-narra... > > > > We've tried downloading a commercial swing component demo (jide) and > > > get the same results, it'll narate the top level window title, but > > > then claims there are no other controls. We've not had time to check > > > if this is just a vista thing yet, figured I'd post here in case > > > someone knew of a gotcha which could be tripping us up > > > > any ideas? > > > Thanks for any help, > > > Robin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/javaposse?hl=en -~----------~----~----~----~------~----~------~--~---
