Box layout arranges the components either horizontal or vertical. javax.swing package has a class BoxLayout that is used to create the BoxLayout managers and Boxes. You use many classes to arrange the components in more sophisticated way. Several supporting classes are typically used javax.swing.BoxLayout , javax.swing.Box , and javax.swing.Box.Filler . there is following coonstructor to create the BoxLayout instance. BoxLayout (Container target, int axis) It creates a layout manager that will lay out components along the given axis. Here target is the container’s reference on which this Layout has to be applied and axis is the integer constant specifying the y-axis or x-axis. here Box is the another lightweight container that uses a BoxLayout object as its layout manager. Box provides several class methods that are useful for containers using BoxLayout -- even non-Box containers. To create an instance of this container we simply pass the de...
Future driven solutions.