- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
/**
* Returns the an array (length 1) containing the checkbox menu item
* label or null if the checkbox is not selected.
* @see ItemSelectable
*/
public synchronized Object[] getSelectedObjects() {
if (state) {
Object[] items = new Object[1];
items[0] = label;
return items;
}
return null;
}
P.S. Дошло. getSelectedObjects.
Какой-то тот самый.
На мой взгляд говно если и есть то вот тут:
>Returns the selected items or null if no
> return null;
Зря плюсанул. Типичное унылое жаба-говно.
>MenuItem implements ItemSelectable
Всё логично.
в самом деле, странно было бы, если бы в menubar'е менюшки можно было бы помечать галочками.
шикааарная фраза!