Prepare
Practice
Interview
Aptitude
Reasoning
English
GD
Placement papers
HR
Current affairs
Engineering
MCA
MBA
Online test
Login
Online Practice Test
>
Applet
« Previous
Next »
What is the immediate super class of Applet class?
Options
- Object
- Window
- Panel
- Component
CORRECT ANSWER : Panel
Discussion Board
Panel
Panel is the immediate super class of Applet Class. Panel provide the following things:
1) Panels allow us to format the screen. Panels must have a specific layout. If a layout is not specified, the default will be a FlowLayout.
2) FlowLayout adds components to the screen one after another from top to bottom and from left to right. Components are rearrange when the user resizes the window. FlowLayout may take no arguments.
Constructor: FlowLayout fl = new FlowLayout( );
3) BorderLayout divides the screen in nine sections based in geographic orientation such as "North", "South", "East"....etc. BorderLayout takes no arguments.
Constructor: BorderLayout bl = new BorderLayout( );
4) GridLayout divides the screen in the number of sections specified by the programmer. GridLayout takes 2 arguments (#rows, #cols).
Constructor: GridLayout gl = new GridLayout(rows, cols ); //rows and cols are int numbers
Rohit Sharma 09-30-2014 05:19 PM
« Previous
Next »
Write your comments
*
*
Email must be in the form someone@domain.com
*
*
Enter the code shown above:
Please enter the code shown above
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)
Related Content
Java Beginner (11)
Java (39)
Java (40)
Java (22)
Java (30)
Java (25)
Java (20)
Java (20)
Core Java (20)
Core Java (10)
Core Java (72)
EJB (20)
JDBC (20)
Applet (20)
Struts (21)
Servlets (20)
Java Web Services (20)
Javascript (40)
J2EE (10)
jQuery (46)
Advertisement
▲