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 |
Explain how to force the garbage collection in java.
Why deletion in linkedlist is fast than arraylist?
Explain the selection sort algorithm and state its time complexity?
How to sort an unsorted array in java?
Why 1 is not a prime number?
what is the difference between thread and runnable types? : Java thread
Why do we use return statement?
What is a condition in java?
What is Generic in java? Where can we write Generic ( class or method or objects or etc...)? with simple example? Thanks, Bose.
2 Answers Infosys, Tech Mahindra,
Can we use catch statement for checked exceptions when there is no chance of raising exception in our code?
What is the maximum size of array in java?
What is a buffer in computer?