2. Which Java Class contains JMenuItem?3. Enter the name of one of the constants in the class JScrollPane that can be used with the Horizontal Scroll Bar. 4. Which class is used to add text to a button? 5. The ImageIcon class is used to convert a picture file to a swing icon. True False6. The viewport in java can be made to only shows a portion of the text at a time. True False7. A strut is: a. an invisible component this is frequently used to assist in the sizing of a java window when using swing. b. a component that is used to hold menus in the vertical position. c. an invisible coponent that has a fixed horizontal size. d. no such item in java. 8. Inner classes are classes: a. defined within an other class b. defined within other methods c. defined in the main method of a class d. defined in a separate class file 9. A border is simply an area around the component that frames the component True False10. Which component in java updates changes made to a GUI automatically? a. the redo manager b. the repair manager c. the repaint manager d. the refresh manager