Set a jframe named myframe to be visible

Assignment Help Other Subject
Reference no: EM131478035

Question 1.
The __________ method provides information about the system in use.
getSystemInfo()
getDefaultToolkit()
getDefaultControlPanel()
getToolkit()

Question 2.
The Swing classes are part of a more general set of UI programming capabilities that are collectively called the __________.
JavaX Classes
Java Foundation Classes
UI packages
Java Extension Libraries

Question 3.
If the beginning and ending points used with the fillPolygon() method are __________, the two endpoints are connected by a straight line before the polygon is filled with color.
connected
coordinate pairs
identical
not identical

Question 4.
__________ contains many commands that allow you to format text on a web page, import graphic images, and link your page to other web pages.
JApplet
HTML
Swing
Applet

Question 5.
If a window is 200 pixels wide by 100 pixels tall, you can place a Button named pressMe in the approximate center of the window with which of the following statements?
pressMe.setLocation(100,50);
pressMe.setPosition(100,50);
pressMe.setLocation(200,100);
pressMe.setPosition(200,100);

Question 6.
You can instantiate an empty Polygon object using which of the following statements?
Polygon someFutureShape = new Polygon(0,0,0,0);
Polygon someFutureShape = new Polygon();
Polygon someFutureShape = new Polygon(0);
Polygon someFutureShape = new Polygon(xPoints, yPoints, xPoints.length);

Question 7.
Use the __________ applet method to perform initialization tasks, such as setting variables to initial values or placing applet components on the screen.
initialize()
begin()
init()
start()

Question 8.
The __________ method requires four arguments and draws the outline of a rectangle using the current drawing color.
clearRect()
drawRect()
fillRect()
paintRect()

Question 9.
If the JApplet class was not already written, you would have to write more than __________ methods to give your JApplet all the capabilities of the built-in JApplet class.
20
50
200
300

Question 10.
Which of the following is NOT a method of the KeyListener interface?
keyTyped()
keyPressed()
keyClicked()
keyReleased()

Question 11.
The __________ method of JCheckBox sets the state of the JCheckBox to true for selected or false for unselected.
void setSelected(boolean)
boolean isSelected()
void setText(String)
String getText()

Question 12.
The __________ method allows you to draw a String in a JFrame window.
drawString()
setFont()
drawLine()
setString()

Question 13.
You specify 2D colors by using the __________ method.
paint()
setPaint()
color()
setColor()

Question 14.
The repaint() method calls another method named __________, which calls the paint() method.
destroy()
actionPerformed()
update()
super()

Question 15.
Which of the following statements will correctly set a JFrame named myFrame to be visible?
myFrame.Visible = True
myFrame.setVisible(true)
myFrame.Visibility.True
myFrame.true = Visible

Question 16.
Applet code runs in a constrained area called a(n) __________.
sandbox
toolbox
appletview
XHTML

Question 17.
The JButton, JCheckBox, JComboBox, and JRadioButton components are associated with the __________ method.
addAdjustmentListener()
addChangeListener()
addWindowListener()
addItemListener()

Question 18.
Which of the following lines of code are used when creating a JApplet using only the init() method?
public add.init()
public void init()
public void start()
public new init()

Question 19.
Which of the following statements will correctly add a JMenuBar named myBar to a JFrame?
myBar = setJMenuBar
setJMenuBar(myBar)
JMenuBar.setJMenuBar(myBar)
JMenuBar = new JMenuBar(myBar)

Question 20.
The Color class contains __________ constants.
3
9
13
16

Reference no: EM131478035

Questions Cloud

What is meant by an agentic shift in social psychology : What is meant by agency cost and the agency problem in finance? Give an example of problems this might cause.
Gantt chart-group class schedule : Using the guidance in Meredith, et al., Microsoft Project 2013 Step-by-Step, and any discussions and online research your group might have done
Explain how have you chosen to structure : explain how have you chosen to structure the Derby relational database and give reasons - explain how have you chosen to structure the data inserted in MongoDB
Explain the mental accounting : What is the empirical difficulty in testing the "bird-in-hand," "self-control," and "mental accounting" theories?
Set a jframe named myframe to be visible : Which of the following statements will correctly set a JFrame named myFrame to be visible?
What functional areas should be represented : In 150 to 250 words, describe what functional areas should be represented on a team responsible for obtaining a $50 million item of equipment.
Were managements decisions to stay competitive sound : Were management's decisions to stay competitive sound? Did management do a good, average, or poor job of controlling expenses?
What is the empirical challenge in testing : What is the fundamental problem with descriptive theories such as the dividend clientele and the life cycle theory?
Frequently visit suppliers at their plants : Is there any reason why a supply management professional might want to ask a supplier's representative to visit him or her at the supply managers plant?

Reviews

Write a Review

Other Subject Questions & Answers

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd