home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 14 / IOPROG_14.ISO / soft / sdkjava / sdkjava.exe / SDKJava.cab / AFC102 / Samples / Viewers / Src / SDKInsetPanel.java < prev    next >
Encoding:
Java Source  |  1998-03-05  |  932 b   |  46 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(int t, int l, int b, int r)
  12.     { 
  13.         super();
  14.         this.t = t; this.l = l; this.b = b; this.r = r;
  15.     }
  16.  
  17.     public Insets getInsets() { return new Insets(t,l,b,r); }
  18. }
  19.  
  20. class SDKInsetPanelVFL extends SDKInsetPanel
  21. {
  22.     public SDKInsetPanelVFL(int t, int l, int b, int r)
  23.     { 
  24.         super(t,l,b,r);
  25.         setLayout(new UIVerticalFlowLayout(UIVerticalFlowLayout.FILL, 0));
  26.     }
  27. }
  28.  
  29. class SDKInsetPanelGL extends SDKInsetPanel
  30. {
  31.     public SDKInsetPanelGL(int t, int l, int b, int r)
  32.     { 
  33.         super(t,l,b,r);
  34.         setLayout(new UIGridLayout(0, 1, 0, 1));
  35.     }
  36. }
  37.  
  38. class SDKInsetPanelBL extends SDKInsetPanel
  39. {
  40.     public SDKInsetPanelBL(int t, int l, int b, int r)
  41.     { 
  42.         super(t,l,b,r);
  43.         setLayout(new UIBorderLayout(0, 0));
  44.     }
  45. }
  46.