in Java recategorized by
451 views
1 vote
1 vote

In the given program:

class Dialog1
{
    public static void main(String args[])
    {
        Frame f1=new Frame("INDIA");
        f1.setSize(300,300);
        f1.setVisible(true);
        FileDialog d=new FileDialog(f1,"MyDialog");
        d.setVisible(true);
        String fname=d.getDirectory()+d.getFile();
        System.out.println("The Selection is"+fname);
    }
}

To make the Frame visible, which of the following statements are true?

  1. f1.setClear(true);
  2. f1.setVisible(true);
  3. f1.setlook(true);
  4. f1.setclean(true);
in Java recategorized by
by
451 views

1 Answer

0 votes
0 votes
framename.SETVISIBLE(true);  because by default frame is set as invisible.

option B
Answer:

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true