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

how to handle http request in struts

2 Answers   Polaris,


What is parameter example?

0 Answers  


What exceptions occur during serialization?

0 Answers  


Give any two differences between C++ and java.

0 Answers   GrapeCity,


What happens when heap memory is full?

0 Answers  


What happens if we override private method?

0 Answers  


What is namespace in java?

0 Answers  


I want to re-reach and use an object once it has been garbage collected. Define how it’s possible?

0 Answers  


What is java instanceof operator?

0 Answers  


Why we used vector class?

0 Answers  


What is the return type of read()?

3 Answers  


Can we create our own daemon thread?

0 Answers  


Categories