Package jflex.gui

Class GridPanel

    • Constructor Detail

      • GridPanel

        public GridPanel​(int cols,
                         int rows)
      • GridPanel

        public GridPanel​(int cols,
                         int rows,
                         int hgap,
                         int vgap)
        Constructor for Grid Panel.
        Parameters:
        cols - number of columns.
        rows - number of rwos.
        hgap - a int.
        vgap - a int.
    • Method Detail

      • doLayout

        public void doLayout()
        Lays out the views.
        Overrides:
        doLayout in class Container
      • setInsets

        public void setInsets​(Insets insets)
        Sets the insets.
        Parameters:
        insets - a Insets object.
      • add

        public void add​(int x,
                        int y,
                        Component c)
      • add

        public void add​(int x,
                        int y,
                        int handle,
                        Component c)
      • add

        public void add​(int x,
                        int y,
                        int dx,
                        int dy,
                        Component c)
      • add

        public void add​(int x,
                        int y,
                        int dx,
                        int dy,
                        int handle,
                        Component c)
        Add a component to this panel.