Difference between a MenuItem and a CheckboxMenuItem?



Difference between a MenuItem and a CheckboxMenuItem?..

Answer / 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

More Core Java Interview Questions

What is difference between char array and string?

0 Answers  


How will you call an Applet using Java Script Function?

0 Answers  


Can we split string with in java?

0 Answers  


What is the preferred size of a component?

3 Answers   ITSA,


Explain about sets?

0 Answers  


What is more advisable to create a thread, by implementing a Runnable interface or by extending Thread class?

5 Answers  


How do you get the length of a string in java?

0 Answers  


What is difference between overloading and overriding in java?

0 Answers  


What are the disadvantages of using inner classes?

0 Answers  


what is synchronization and why is it important? : Java thread

0 Answers  


Describe inheritance as applied to java?

4 Answers  


How can we achieve IPC in JAVA?

1 Answers   Wipro,


Categories