Code example for AccessibleContext

Methods: setAccessibleDescriptionsetAccessibleName

0
    		text = ((AbstractButton)comp).getText() ;
    	else 
    		text = comp.getName();
    	if (text != null)
    	{ 
    		ac.setAccessibleName(text);
    		ac.setAccessibleDescription(text) ;
    	} 
    	return comp ;
    } 
     
     
	public static Frame tryFindSuitableFrameOwner ()
	{ 
		Frame owner = null;
		// find a suitable owner, if any 
		Frame[] allFrames = Frame.getFrames();
		if (allFrames != null) {
			for (Frame frame : allFrames) {
				if (frame == null)
Connect your IDE to all the code out there  Get Codota for Java