Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I am wondering if someone can give me a handle oh these Java questions, I would appreciate that. Question 1 0 / 1 point What

I am wondering if someone can give me a handle oh these Java questions, I would appreciate that.

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed
Question 1 0 / 1 point What is the most important (and correct) difference between the GridLayout and the Grid BagLayout? Grid Panes need to be filled up all at once, Grid Bag Layouts can be filled one-at-a-time. . Grid Panes won't let you put Panes inside them, while Grid BagLayouts permit inner Layouts. Grid Layouts are filled up in sequence, Grid BagLayouts require coordinates. They're spelled differently. Question 2 1 / 1 point If you don't register an event handler on a component for a specific event, what happens? The component ignores all input. Exceptions are thrown when the component is used. The code will not compile. . That specific event is ignored. Question 3 0 / 1 point If I want to control how tall a JPanel (or Pane) is, but let it take up as much width as possible, what would be the best thing to do? ( Put it in the north (or top) of a Border layout. Set its size to be Integer. MAX_VALUE Put it in the center of a Border layout. Put it in a Flow layout.Question 4 0 / 1 point Choose which is most correct. Inner classes can not have a constructor: As any sort of class. As an anonymous class. As a private class . As a static class. Question 5 0 / 1 point What happens if you don't use a button group on a bunch of radio buttons? The code compiles but an exception is thrown when the buttons are clicked. The code won't compile. . Nothing, everything works fine. The buttons act kind of like checkboxes and you can select multiple entries. Question 6 1 / 1 point What happens if you press "enter" in a () TextField? Nothing. It generates an ActionEvent. It makes a blank line. Why would you want to?Question 12 0 / 1 point Which one of these is the most important to a good UI, and is actually correct? . Behaviour: Your UI should behave nicely. Appropriateness: The UI should never be rude. Feedback: The UI should grade the user on their actions. OIntuitive: The user should have a sense how your software behaves. Question 13 1 / 1 point How many Panes (or JPanels) can be placed in another Pane (or JPanel)? Depends on the version of Java. None One. As many as you want. Question 14 0 / 1 point In the hierarchy of Swing Ul elements, what is the name of the top-level item from which all other elements inherit? Node Bob. JComponent. JApplet.Question 17 0 / 1 point What happens if you press "enter" in a (J) TextArea? Why would you want to? It makes a blank line. Nothing. It generates an ActionEvent. Question 18 0 / 1 point How many areas of a Border layout have to be used? ONone More than two Two OneQuestion 19 0 / 1 point What's with that business with "EventQueue.InvokeLater()" anyway? It's some confusion that wasn't explained well or at all so far. It puts your code at the end of the Event Dispatch Thread, which is used by Java to update the UI. It's some stuff that can be safely ignored. O It puts your code into suspended animation. Question 20 0 / 1 point Inner classes can access the following variables: O Variables marked "static" only. O Only their own variables. The fields from the outer class. . All variables, no matter what.How maanFrames can be placed in a JPanel ? @ As many as you want. 0 Depends on the version of Java

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction to Wireless and Mobile Systems

Authors: Dharma P. Agrawal, Qing An Zeng

4th edition

1305087135, 978-1305087132, 9781305259621, 1305259629, 9781305537910 , 978-130508713

More Books

Students also viewed these Programming questions