SlideShare a Scribd company logo
What is the container for top level menu items? Select one: a
menu bar b. menu item c. menu GU u, d. top level menus don't
use containers Which component can be added to a menu? II
JMenu III MenuItem Select one a. I b. I and II c. Il and iIll d. I.
Ill and i
Solution
1.What is the container for top level menu items?
Ans)a. Menu bar
menu bar is a top-level container. The menu bar is by
convention positioned within the top-level container, but
outside the content pane and menu bar contains menus.
2.Which component can be added to a menu?
Ans) c.JMenu and JMenuItem
Menu having submenu and menu items when we create the
container for top level menu and menu Items.
3.SKIP QUESTION!______________ are round and have a
black dot when selected?
Ans) c. radio buttons
Radio buttons are round and have a black dot when selected.
4. which of the following statements about inheritance is NOT
true?
Ans) d. Instance fields can be overridden
The above statement is wrong about inheritance because of
Instance fields cannot be overridden.
5. To associate an event listener with a JButton component, you
must use the ____method of the JButton class
Ans) b. addActionListener
JButton have addActionListener method when Action or event
performed. To associate an event listener with a JButton
component, you must use the addActionListener method of the
JButton class
6. Which layout manager places objects left-to-right, row by
row into a fixed set of rows….
Ans) d. GridLayout
The class GridLayout arranges components in a matrix grid. In
GridLayout components added from left to right and row by
row.
7. The Date class is found in which package?
Ans) a. java.util package
Date class is in the util package in java. If you want use this
class, first import that class from util package. import
java.util.Date;

More Related Content

PPTX
java2 (3).pptxbsbsbnsjsjjsshshshwhwhwhwhhwhw
PPTX
Advanced java programming
PDF
Starting Out With Java From Control Structures Through Data Structures 2nd Ed...
PDF
1 Which component contains menusa. Menu button.b. Title bar.c.pdf
PDF
Starting Out With Java From Control Structures Through Data Structures 2nd Ed...
PDF
Starting Out With Java From Control Structures Through Data Structures 2nd Ed...
PDF
Starting Out With Java From Control Structures Through Data Structures 2nd Ed...
PPT
Chapter 5 GUI for introduction of java and gui .ppt
java2 (3).pptxbsbsbnsjsjjsshshshwhwhwhwhhwhw
Advanced java programming
Starting Out With Java From Control Structures Through Data Structures 2nd Ed...
1 Which component contains menusa. Menu button.b. Title bar.c.pdf
Starting Out With Java From Control Structures Through Data Structures 2nd Ed...
Starting Out With Java From Control Structures Through Data Structures 2nd Ed...
Starting Out With Java From Control Structures Through Data Structures 2nd Ed...
Chapter 5 GUI for introduction of java and gui .ppt

Similar to What is the container for top level menu items Select one a menu ba.docx (20)

PDF
Java Foundations Introduction to Program Design and Data Structures 4th Editi...
PDF
Java Foundations Introduction to Program Design and Data Structures 4th Editi...
PDF
Starting Out With Java From Control Structures Through Data Structures 2nd Ed...
PPTX
Java swing
PPTX
Java Swing
PPT
Quiz app(j tabbed pane,jdialog,container,actionevent,jradiobutton,buttongroup...
DOCX
TY.BSc.IT Java QB U1
PDF
Java Foundations Introduction to Program Design and Data Structures 4th Editi...
PDF
Z blue introduction to gui (39023299)
PDF
Unit 1 cwipedia
PPTX
JavaSwingndAWTProgrammingforBeginner.pptx
PDF
Swingpre 150616004959-lva1-app6892
PPT
Swing and AWT in java
DOCX
1 How do you create a frame (AWT or swing)How do you set th
PPTX
Advanced Java GUI Programming_ AWT, Swing, and Event Handling_AI PPT Maker.pptx
PPTX
AbstractWindowToolkit33333333333333.pptx
PDF
28-GUI application.pptx.pdf
PPT
13457272.ppt
PPTX
swing_compo.pptxsfdsfffdfdfdfdgwrwrwwtry
PPT
Swing jecrc
Java Foundations Introduction to Program Design and Data Structures 4th Editi...
Java Foundations Introduction to Program Design and Data Structures 4th Editi...
Starting Out With Java From Control Structures Through Data Structures 2nd Ed...
Java swing
Java Swing
Quiz app(j tabbed pane,jdialog,container,actionevent,jradiobutton,buttongroup...
TY.BSc.IT Java QB U1
Java Foundations Introduction to Program Design and Data Structures 4th Editi...
Z blue introduction to gui (39023299)
Unit 1 cwipedia
JavaSwingndAWTProgrammingforBeginner.pptx
Swingpre 150616004959-lva1-app6892
Swing and AWT in java
1 How do you create a frame (AWT or swing)How do you set th
Advanced Java GUI Programming_ AWT, Swing, and Event Handling_AI PPT Maker.pptx
AbstractWindowToolkit33333333333333.pptx
28-GUI application.pptx.pdf
13457272.ppt
swing_compo.pptxsfdsfffdfdfdfdgwrwrwwtry
Swing jecrc
Ad

More from ajoy21 (20)

DOCX
Please complete the assignment listed below.Define and explain, us.docx
DOCX
Please cite sources for each question. Do not use the same sources f.docx
DOCX
Please choose one of the following questions to answer for this week.docx
DOCX
Please check the attachment for my paper.Please add citations to a.docx
DOCX
Please answer to this discussion post. No less than 150 words. Refer.docx
DOCX
Please attach Non-nursing theorist summaries.JigsawExecutive .docx
DOCX
Please answer the question .There is no work count. PLEASE NUMBER .docx
DOCX
Please answer the following questions. Please cite your references..docx
DOCX
Please answer the following questions.1.      1.  Are you or.docx
DOCX
Please answer the following question with 200-300 words.Q. Discu.docx
DOCX
Please answer the following question Why do you think the US ha.docx
DOCX
Please answer the following questions. Define tunneling in the V.docx
DOCX
Please answer the following questions1. How can you stimulate the.docx
DOCX
Please answer the following questions very deeply and presicely .docx
DOCX
Please answer the following questions in an informal 1 ½ - 2-page es.docx
DOCX
Please answer the following questions in a response of 150 to 200 wo.docx
DOCX
Please answer these questions regarding the (TILA) Truth in Lending .docx
DOCX
Please answer the following question pertaining to psychology. Inc.docx
DOCX
Please answer the following questions in a response of 250 to 300 .docx
DOCX
Please answer the three questions completly. I have attached the que.docx
Please complete the assignment listed below.Define and explain, us.docx
Please cite sources for each question. Do not use the same sources f.docx
Please choose one of the following questions to answer for this week.docx
Please check the attachment for my paper.Please add citations to a.docx
Please answer to this discussion post. No less than 150 words. Refer.docx
Please attach Non-nursing theorist summaries.JigsawExecutive .docx
Please answer the question .There is no work count. PLEASE NUMBER .docx
Please answer the following questions. Please cite your references..docx
Please answer the following questions.1.      1.  Are you or.docx
Please answer the following question with 200-300 words.Q. Discu.docx
Please answer the following question Why do you think the US ha.docx
Please answer the following questions. Define tunneling in the V.docx
Please answer the following questions1. How can you stimulate the.docx
Please answer the following questions very deeply and presicely .docx
Please answer the following questions in an informal 1 ½ - 2-page es.docx
Please answer the following questions in a response of 150 to 200 wo.docx
Please answer these questions regarding the (TILA) Truth in Lending .docx
Please answer the following question pertaining to psychology. Inc.docx
Please answer the following questions in a response of 250 to 300 .docx
Please answer the three questions completly. I have attached the que.docx
Ad

Recently uploaded (20)

PDF
advance database management system book.pdf
PPTX
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
PPTX
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PDF
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
PPTX
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
PDF
Complications of Minimal Access-Surgery.pdf
PDF
LDMMIA Reiki Yoga Finals Review Spring Summer
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
IGGE1 Understanding the Self1234567891011
PDF
Trump Administration's workforce development strategy
PDF
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
PDF
What if we spent less time fighting change, and more time building what’s rig...
PPTX
Virtual and Augmented Reality in Current Scenario
PPTX
Unit 4 Computer Architecture Multicore Processor.pptx
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PDF
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
PPTX
History, Philosophy and sociology of education (1).pptx
PDF
Weekly quiz Compilation Jan -July 25.pdf
advance database management system book.pdf
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
Complications of Minimal Access-Surgery.pdf
LDMMIA Reiki Yoga Finals Review Spring Summer
Chinmaya Tiranga quiz Grand Finale.pdf
IGGE1 Understanding the Self1234567891011
Trump Administration's workforce development strategy
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
What if we spent less time fighting change, and more time building what’s rig...
Virtual and Augmented Reality in Current Scenario
Unit 4 Computer Architecture Multicore Processor.pptx
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
History, Philosophy and sociology of education (1).pptx
Weekly quiz Compilation Jan -July 25.pdf

What is the container for top level menu items Select one a menu ba.docx

  • 1. What is the container for top level menu items? Select one: a menu bar b. menu item c. menu GU u, d. top level menus don't use containers Which component can be added to a menu? II JMenu III MenuItem Select one a. I b. I and II c. Il and iIll d. I. Ill and i Solution 1.What is the container for top level menu items? Ans)a. Menu bar menu bar is a top-level container. The menu bar is by convention positioned within the top-level container, but outside the content pane and menu bar contains menus. 2.Which component can be added to a menu? Ans) c.JMenu and JMenuItem Menu having submenu and menu items when we create the container for top level menu and menu Items. 3.SKIP QUESTION!______________ are round and have a black dot when selected? Ans) c. radio buttons Radio buttons are round and have a black dot when selected. 4. which of the following statements about inheritance is NOT true? Ans) d. Instance fields can be overridden
  • 2. The above statement is wrong about inheritance because of Instance fields cannot be overridden. 5. To associate an event listener with a JButton component, you must use the ____method of the JButton class Ans) b. addActionListener JButton have addActionListener method when Action or event performed. To associate an event listener with a JButton component, you must use the addActionListener method of the JButton class 6. Which layout manager places objects left-to-right, row by row into a fixed set of rows…. Ans) d. GridLayout The class GridLayout arranges components in a matrix grid. In GridLayout components added from left to right and row by row. 7. The Date class is found in which package? Ans) a. java.util package Date class is in the util package in java. If you want use this class, first import that class from util package. import java.util.Date;