J Labels display text and they are also editable during run time. True False Question 21 pts Which menu component is set on the J Frame instance? J Content Pane J Menu Item J Menu Bar J Menu Question...

J Labels display text and they are also editable during run time. True False Question 21 pts Which menu component is set on the J Frame instance? J Content Pane J Menu Item J Menu Bar J Menu Question 31 pts Many Swing components, such as labels, buttons, and tabbed panes, can be decorated with an icon. True False Question 41 pts Image I/O has built-in support for GIF, PNG, JPEG, BMP, and WBMP. True False Question 51 pts With the exception of the three top-level containers all Swing components that start with the letter “J” descend from the __________ class. J Text Component J Frame J Component J Object Question 61 pts Menus in the Java programming language are unique as they aren’t placed with the other components in the user interface. True False Question 71 pts action Performed(Action Event) is the only method that is required to be implemented when implementing the Action Listener interface in Java. True False Question 81 pts Each of the three top level container classes has a content pane that contains the visible components in its container user interface. True False Question 91 pts The purpose of writing Action Listeners is to define what code should be executed when the application fires a specific Action Event. True False Question 101 pts To add a clickable button to a user interface the javax .swing class J Button is commonly used. Which of the following statements is true about the class J Button? The J Button class only allows for displaying text on the button Unlike the J Menu class the J Button class cannot use mnemonics. A J Button instance can display its text in a different place relative to its image The J Button class has automatic event handling associated with it when clicked Question 111 pts When using Flow Layout, if the width of a container is not wide enough to accommodate all the components in a single row how does the layout manager respond? No more components display Starts a new row Overlays new components on existing components None of these Question 121 pts Which layout manager is the default layout for the three top-level container classes in the java x .swing package? Grid bag Layout Flow Layout Border Layout Grid Layout Question 131 pts Two of the six layout managers provided by the Java API were designed with the intent to use them with GUI builder tools, they are __________ and __________. Box Layout, Card Layout Group Layout, Grid bag Layout Spring Layout, Group Layout Group Layout, Flow Layout Question 141 pts Card Layout allows for implementing an area that contains different components at different times. True False Question 151 pts Which layout manager is the default layout for class ja vax. swing. J Panel? Grid Layout Flow Layout Border Layout Grid bag Layout Question 161 pts When adding components to a J Panel using the Flow Layout lay out manager how are the components placed if not specified? Group of answer choices Bottom to top in the order they were added Top to bottom in the order they were added Left to right in the order they were added Right to left in the order they were added Question 171 pts Which Java programming language layout manager arranges the components into rows and columns using equal-sized rectangular grid? Card Layout Grid Layout Flow Layout Border Layout Question 181 pts J Dialog is one of the three top-level containers. True False Question 191 pts The javax. swing and javax. swing. event, or Swing API, has 18 public packages that group features for developing user interfaces, this is known as part of the __________. Java Foundation Classes (JFC) User Interface Package (UIP) Visual Studio Java 2D API Question 201 pts When method .set Tool Tip Text("") is applied to a J Component, for example a J Button, what happens when the cursor pauses over the component? the text replaces any text on the component None of these the text appears in a J Dialog the specified string is displayed in a small window that appears near the component Question 211 pts Which of the following is not a swing text component? J Formatted Text Field J Button J Text Field J Text Area Question 221 pts private J Frame frame = new J Frame(); Given the source code above, the instantiation of class J Frame would result in a title displaying in the J Frame when the J Frame displays. True False Question 231 pts What method is called on an instance of class J Frame to make the J Frame display? .set Visible(false) .show(true) .show(false) .set Visible(true) Question 24 What method is called on an instance of class J Menu Bar to add a J Menu? .show() .include() .add() None of these Question 25 What method is called on an instance of class J Panel to add a border? .display Border() .set Border() .border() .add Border() Question 26 What method is called on an instance of class J Panel to set the layout manager? .add Layout() None of these .layout() .set Layout() Question 27 What method is called on an instance of class J Label to set the background colour? .set Background Colour() .set Back ground() .set Colour() None of these Question 28 When calling method .set Minimum Size() or .set Preferred Size() or .set Maximum Size() on a J Component, what argument must be passed in the parenthesis? an instance of class Size None of these an instance of class Width Height an instance of class Dimension Question 29 Regarding how methods work, after a method returns, its local variables keep their values, which serve as their initial values the next time the method is called. True False Question 30 Regarding common method errors, which of the following would result in an error? Forgetting to return a value from a method with a non-void return type Not including a return statement for a method defined as return type void None of these Returning the correct variable from a method Question 31 An array is passed to a method by passing a reference to the array. The array reference is copied to the method's parameter, so a method can modify the elements of an array argument. True False Question 32 Regarding variable scope, a local variable is declared inside a method, while a field is declared outside any method. True False
May 19, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here