Difference between a MenuItem and a CheckboxMenuItem?
Answer Posted / satheesh kannan
MenuItem is associated with a single event where as
CheckBoxMenuItem is associated with two events(it is having
a toggle state-enable/disable)
File->open is best example of menu item , it opens a "open
dialog" box when we click this is taken as a single event,
View-->status bar is a checkboxmenuitems, which has two
states, If it "on", the status bar gets displayed in IE,if
we click it again its gets "Off", the status bar is hidden.
(similar to a checkbox)
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
These static constructors are correct ? class A { statc intA() { } static A(int x,int y) { } static A(int x) { } }
What is field name?
How to overcome the exception object reference not set to an instance of object?
What is a method header?
What is the difference between the file and randomaccessfile classes?
Can a class extend more than one class?
Explain constructors and types of constructors in java.
What is final keyword?
Should you use singleton pattern?
What is the difference between jdk, jre, and jvm?
How do you test a method for an exception using junit?
Can this keyword be used to refer static members?
Is object a data type?
How do you check if an arraylist is not empty?
What are thread priorities and importance of thread priorities in java?