AccessibleStateSet () { AccessibleStateSet states = super.getAccessibleStateSet(); if (myEditor.getDocument().isWritable()) { states.add(AccessibleState.EDITABLE); } states.add(AccessibleState.MULTI_LINE); return states; }