Which method is used to enable or disable menu item in Java?

Nguyễn Trà

New member
Which method is used to enable or disable menu item in Java?
Answer
The final menu item is a submenu labeled “More Examples” , and this submenu is an instance of Menu . When a menu item is selected, AWT sends an action event to the menu item.
…
Method Summary.

Modifier and Type

Method and Description

void

disable() Deprecated. As of JDK version 1.1, replaced by setEnabled(boolean) .
 

Tìm kiếm

Back
Top