I have a requirement that disabled JButton be read by JAWS version 9. i.e. if I have a JButton with the text "True", it ought to be read something like "True, disabled button". But when I use setEnabled(false)
it no longer participates in the tab focus sequence, and therefore never gets read. Is it possible to make a disabled JButton readable by JAWS as I've described?
My "solution" right now is to emulate disabled buttons and set the accessible name as follows:
button.setForeground(Color.GRAY);
button.getAccessibleContext().setAccessibleName(buttonText + " disabled");
But I'd really rather use real disabled buttons.