What is CardLayout?



What is CardLayout?..

Answer / modi[achir communication]

A CardLayout object is a layout manager for a container. It
treats each component in the container as a card. Only one
card is visible at a time, and the container acts as a stack
of cards. The first component added to a CardLayout object
is the visible component when the container is first displayed.

The ordering of cards is determined by the container's own
internal ordering of its component objects. CardLayout
defines a set of methods that allow an application to flip
through these cards sequentially, or to show a specified
card. The addLayoutComponent(java.awt.Component,
java.lang.Object) method can be used to associate a string
identifier with a given card for fast random access.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is the top class of AWT event hierarchy?

5 Answers  


What is the abstract class?

0 Answers  


Does string isempty check for null?

0 Answers  


How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters?

0 Answers  


How the elements are organized in GridLayout?

2 Answers  






What is preflight request?

0 Answers  


what is difference between front controller and action servlet?

2 Answers  


What is difference between static variable and global variable?

0 Answers  


What are the states of thread in java?

0 Answers  


What is the dot operator?

0 Answers  


An inner class can actually be a subclass of the outer class? a. true b. false

2 Answers  


How to initialize an Applet ?

9 Answers   TCS,


Categories