aspose file tools
The moose likes Mock Exam Errata and the fly likes R&H test question on Frames Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Mock Exam Errata
Reply Bookmark "R&H test question on Frames" Watch "R&H test question on Frames" New topic
Author

R&H test question on Frames

Kamakshi Mahadevan
Greenhorn

Joined: Nov 08, 2000
Posts: 18
To make a frame f appear on the screen, you have to call:
a)f.setSize(300,200)
b)f.setVisible(true)
c)f.setForeground(Color.white)
d)f.setFont(new Font("Sans Serif", Font.BOLD,24)
The answer is: a & b
when i tried a program with setVisible(true) and no setSize(), it still displays a frame with just the title bar & the 3 buttons for minimize, maximize & close. When I click on the maximize button, the frame occupies the entire screen.so the frame appears on the screen with no setSize().
So, I think the answer is b.
i saw a similar question in Jxam.
can anybody tell me if I am missing something here??
thanks
kamakshi

Nijeesh Balan
Ranch Hand

Joined: Oct 09, 2000
Posts: 116
Hi Kamakshi,
Even I would support your point..I answered B but later found the answer to be A and B..
Others please do clarify...
Thanks
Nijeesh


Thanks & Regards,<br />Nijeesh.
 
 
subject: R&H test question on Frames
 
Threads others viewed
From Valiveru's mock exam
empty frame
Want to display components on a frame after running programm immediately
Frames
Frame
MyEclipse, The Clear Choice