Multiple Choice
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?
A) pressMe.setLocation(100,50) ;
B) pressMe.setPosition(100,50) ;
C) pressMe.setLocation(200,100) ;
D) pressMe.setPosition(200,100) ;
Correct Answer:

Verified
Correct Answer:
Verified
Q19: You can improve the appearance of strings
Q40: In the drawPolygon() method, what are the
Q45: BasicStroke myLine = new BasicStroke(12.0f, BasicStroke.CAP_SQUARE, BasicStroke.JOIN_ROUND);
Q47: The getFontMetrics() method can be used to
Q50: Match each term with the correct statement
Q51: import javax.swing.*;<br>import java.awt.*;<br>import java.awt.Color;<br>public class JDemo3DRectangles extends
Q53: If you call getGraphics() in a frame
Q55: A Rectangle2D.Float can be created using five
Q57: You use the _ method to draw
Q63: The draw3DRect() method is used to draw