Skip to main content

Posts

Showing posts from January 6, 2017

GridLayout: fill the form with gridlayout

Swing controls are of two types they are Containers and components. components are arranged on a containers. example components are JLabel, JButton etc and example containers are JPanel, JFrame and JDialog etc. these components are arranged on a container with the help of layout managers. Few layout managers available in swing toolkit are 1. FlowLayout [Jframe's Default layout manager] 2. GridLayout 3. BorderLayout [JPanel's Default layout manager] 4. GridBagLayout. 5. Custom Layout manager The custom layout amanger is useful to design programmer's own layout manager. Usually this is useful when any of the available layout managers does not give the needy result. apart of these above all layout managers, few third party libraries are also available they are 1. DesignGridLayout 2. Mig Layout etc Design grid Layout Gridlayout is one of the most simple and flexible layout managers. layout manager is used to arrange the components on a container with proper mar...