Which is not a method of the keylistener interface

Assignment Help Computer Engineering
Reference no: EM131188631

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: EM131188631

Questions Cloud

What is the purpose of the main method in a java application : Discuss the following questions with your classmates. What is the purpose of the main method in a Java application program? Can you write a Java program without it? Why? Why not?
Explain key law enforcement regulatory procedures : Explain key law enforcement regulatory procedures and rules and requirements of law enforcement in the evidence collection phase. Explain and debate fundamental Supreme Court cases associated with criminal procedure.
How that idea is influencing a modern government today : Select one idea each from the modern philosophers - Sartre, Arendt, and Rawls - and discuss how that idea is influencing a modern government today.
How many signals does a receive : How many signals does A receive? How many does B receive?
Which is not a method of the keylistener interface : Which of the following is NOT a method of the KeyListener interface? Which of the following statements will correctly set a JFrame named myFrame to be visible?
What is the location of the projectile 2.00 seconds later : A projectile is projected from the origin with a velocity of 15.0 m/s at an angle of 30.0 degrees above the horizontal. What is the location of the projectile 2.00 seconds later?
Identify and describe a current issue in american government : Identify and describe a current issue (this could be a controversy or just an issue of importance) in American Government. Explain in 1-2 pages how one of the modern philosophers we've studied would respond to that issue.
How would this punishment interact with the laws : Do you feel that juvenile delinquency can effectively be curbed by the threat of corporal punishment? Why or why not? Do you feel that juvenile delinquency issues should be addressed by the threat of corporal punishment? Why or why not?
Write a paper on teenage pregnancy : Write a paper on given Question.- Propose and discuss practical primary, secondary, and tertiary strategies for prevention for Teenage Pregnancy.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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