I'm a newbie to Java for the most part, trying to get my feet wet by working on the Megamek
project, making it accessible to the blind, including myself.
I'm struggling with the PMSimpleLabel class. It's suposed to be a JLabel equivalent that can be drawn directly on the Megamek custom PicMap widget. I want to make it accessible and allow it to be associated with other controls, much in the manner of a JLabel. I'm not sure quite how to do this.
The other programmer working on this has basically re-implemented a lot of the methods from the JLabel.AccessibleJLabel class, but the accessibility association isn't working as I'd expect. I'm 98% sure I'm missing something obvious, and owuld love to be pointed in the right direction.
In particular, I'm confused by the AccessibleRelationSet, and how it relates to accessibility properties. Am I meant to manipulate one or both directly?
This is a very simple control, and I feel like if I can get it sorted I'll be in a much better position to understand how to make the rest of this project accessible.
Thanks for any advice.