Which methods retrieve and set the image that's displayed in a JLabel?

a. getIcon, setIcon.
b. getResource, setResource.
c. getText, setText.
d. getImageIcon, setImageIcon.


a. getIcon, setIcon.

Computer Science & Information Technology

You might also like to view...

Which of the following is dependent upon determining human resources for the project?

A) economic feasibility B) operational feasibility C) tactical feasibility D) technical feasibility

Computer Science & Information Technology

PDF stands for Professional Document Format.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

To add additional memory without adding RAM, you could use:

A) disk defragmentation B) Cleanup C) ReadyBoost D) Windows Update

Computer Science & Information Technology

Consider the following class definition.public class Cylinder{    private double baseRadius;    private double height;    public Cylinder ()    {        baseRadius = 0;        height = 0;    }    public Cylinder (double l, double h)    {        baseRadius = l;        height = h;    }    public void set(double r, double h)    {        baseRadius = r;        height = h;    }    public String toString()    {        return (baseRadius + " " + height);    }    public double SurfaceArea()    {        return 2 * 3.14 * baseRadius * height;    }    public double volume()    {        return 3.14 * baseRadius * baseRadius * height;    }}Suppose that you have the following

declaration. Cylinder cyl = new Cylinder(1.5, 10);Which of the following sets of statements are valid in Java?(i)    cyl.surfaceArea();   cyl.volume();   cyl.print();(ii)       print(cyl.surfaceArea);   print(cyl.volume());   A. Only (i)      B. Only (ii) C. Both (i) and (ii)      D. None of these

Computer Science & Information Technology