Subscribe to Java Codings        RSS Feed

Java Codings has no entries yet


Page 1 of 1

GBC

Compile this ..

CODE

import java.awt.*;
public class GBC extends GridBagConstraints
    {
        public GBC(int gridx, int gridy)
            {
                this.gridx = gridx;
                this.gridy = gridy;
            }
        public GBC(int gridx, int gridy, int gridwidth, int gridheight)
            {
                this.gridx = gridx;
                this.gridy = gridy;
                this.gridwidth = gridwidth;
                this.gridheight = gridheight;
            }
       public GBC setAnchor(int anchor)
            {
                this.anchor = anchor;
                return this;
            }
       public GBC setFill(int fill)
            {
                this.fill = fill;
                return this;
            }
       public GBC setWeight(double weigtx, double weighty)
            {
                this.weightx = weightx;
                this.weighty = weighty;
                return this;
            }
       public GBC setInsets(int distance)
            {
                this.insets = new Insets(distance, distance, distance, distance);
                return this;
            }
      public GBC setInsets(int top, int left, int bottom, int right)
            {
                this.insets = new Insets(top,left,bottom,right);
                return this;
            }
      public GBC setIpad(int ipadx, int pady)
            {
                this.ipadx = ipadx;
                this.ipady = ipady;
                return this;
            }
      }

March 2021

S M T W T F S
 123456
78910111213
14151617181920
21222324252627
28293031   

Tags

Search My Blog

0 user(s) viewing

0 Guests
0 member(s)
0 anonymous member(s)

Recent Entries