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

Explain about the security aspect of java?

0 Answers  


Difference between hashCode() & equals()?

3 Answers   HCL,


What is a stack class in java ?

0 Answers   Akamai Technologies,


Can we have multiple catch block for a try block?

0 Answers  


What is the Set interface?

2 Answers  






What is difference between throw and throws ?

0 Answers   Cyient,


What are assertions in java?

1 Answers   Impetus,


Is object a data type?

0 Answers  


State the main difference between c++ and java?

0 Answers  


Can long be null in java?

0 Answers  


What is keyword auto for?

0 Answers  


What are the advantages of exception handling?

0 Answers  


Categories