aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Frame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Frame" Watch "Frame" New topic


nitin sharma
Ranch Hand

Joined: Feb 24, 2001
Posts: 290
If u wat to create a GUI Application using AWT,U constructed a frame calling
Frame f=new Frame();
What Methods u need to call on the frame f to make it visible.
3)Both A&B.
4)There is no need to call any method's on f explicitly to make it visible.
I chose option (1) but the given answer is option (3).Please tell me the correct option.
seSize() method takes an int parameter not boolean parameter.
Percy Densmore
Ranch Hand

Joined: Mar 06, 2001
Posts: 214
To make Frame visible option 'setVisible(true)' is certainly correct. If setSize() or setBounds() is not used with the respective parameters the frame will still not be visible in my humble opinion.
The option 'setSize(true)' looks like a typo. Where is that question from?
I agree. Here's the link:
subject: Frame
Similar Threads
please help me with Recursion
Button not visible inc Frame
'JvalTest' Java2 Certification Mock Exam Applet
From Valiveru's mock exam
how can i set the focus?