Programming - Swings
You Are Here :: Home > JAVA > Swings - General Questions
31. |
JTextArea(int row,int column) creates a text area with the specified number of rows and columns that displays __________initially.
|
A. |
specified text |
B.
|
text |
C.
|
no text
|
D.
|
both a and b
|
|
Answer: Option C
Explanation:
JTextArea(int row,int column) creates a text area with the specified number of rows and columns that displays no text initially. |
|
32. |
JTextArea(String s,int row,int column) creates a text area with the specified number of __________ that displays specified text.
|
A. |
tables |
B.
|
rows and columns |
C.
|
both a and b
|
D.
|
none
|
|
Answer: Option B
Explanation:
JTextArea(String s,int row,int column) creates a text area with the specified number of rows and columns that displays specified text. |
|
33. |
public void setRows(int rows) is used to set specified number of __________.
|
A. |
columns |
B.
|
tables |
C.
|
rows
|
D.
|
all the above
|
|
Answer: Option C
Explanation:
public void setRows(int rows) is used to set specified number of rows. |
|
34. |
public vodi setColumns(int cols) is used to set specified number of ____________.
|
A. |
columns |
B.
|
rows |
C.
|
tables
|
D.
|
none
|
|
Answer: Option A
Explanation:
public vodi setColumns(int cols) is used to set specified number of columns. |
|
35. |
public void setFont(Font f) is used to set the _________.
|
A. |
Format |
B.
|
specified color |
C.
|
specified font
|
D.
|
none
|
|
Answer: Option C
Explanation:
public void setFont(Font f) is used to set the specified font. |
|
36. |
public void insert(String s,int position) is used to insert the specified text on the _________.
|
A. |
un specified position |
B.
|
start |
C.
|
end
|
D.
|
specified position
|
|
Answer: Option D
Explanation:
public void insert(String s,int position) is used to insert the specified text on the specified position. |
|
« prev
next »