home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 14 / IOPROG_14.ISO / soft / sdkjava / sdkjava.exe / SDKJava.cab / AFC102 / Samples / Scrolls / Src / SDKInsetPanel.java < prev    next >
Encoding:
Java Source  |  1998-03-05  |  974 b   |  48 lines

  1. //
  2. // (c) 1997 Microsoft Corporation.  All rights reserved.
  3. //
  4. import java.awt.Insets;
  5. import com.ms.ui.*;
  6.  
  7. public class SDKInsetPanel extends UIPanel
  8. {
  9.     private int t,l,b,r;
  10.  
  11.     public SDKInsetPanel() { this(0,0,0,0); }
  12.  
  13.     public SDKInsetPanel(int t, int l, int b, int r)
  14.     { 
  15.         super();
  16.         this.t = t; this.l = l; this.b = b; this.r = r;
  17.     }
  18.  
  19.     public Insets getInsets() { return new Insets(t,l,b,r); }
  20. }
  21.  
  22. class SDKInsetPanelVFL extends SDKInsetPanel
  23. {
  24.     public SDKInsetPanelVFL(int t, int l, int b, int r)
  25.     { 
  26.         super(t,l,b,r);
  27.         setLayout(new UIVerticalFlowLayout(UIVerticalFlowLayout.FILL, 0));
  28.     }
  29. }
  30.  
  31. class SDKInsetPanelGL extends SDKInsetPanel
  32. {
  33.     public SDKInsetPanelGL(int t, int l, int b, int r)
  34.     { 
  35.         super(t,l,b,r);
  36.         setLayout(new UIGridLayout(0, 1, 0, 1));
  37.     }
  38. }
  39.  
  40. class SDKInsetPanelBL extends SDKInsetPanel
  41. {
  42.     public SDKInsetPanelBL(int t, int l, int b, int r)
  43.     { 
  44.         super(t,l,b,r);
  45.         setLayout(new UIBorderLayout());
  46.     }
  47. }
  48.