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
Q4: The _ method allows you to draw
Q6: The statements pen.drawLine(50, 50, 100, 200); and
Q7: If a window is 100 pixels by
Q10: The Color class contains _ constants.
A) 3
B)
Q12: You can designate a Graphics color by
Q13: The first step in drawing a 2D
Q13: A Rectangle2D.Float can be created using five
Q15: The _ method requires four arguments and
Q16: When using the drawRoundRect() method, if you
Q17: Both Rectangle2D.Float and Rectangle2D.Double can be created
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents