home *** CD-ROM | disk | FTP | other *** search
Java Source | 2000-05-04 | 949 b | 46 lines |
- //
- // (C) Copyright 1995 - 1999 Microsoft Corporation. All rights reserved.
- //
- import java.awt.Insets;
- import com.ms.ui.*;
-
- public class SDKInsetPanel extends UIPanel
- {
- private int t,l,b,r;
-
- public SDKInsetPanel(int t, int l, int b, int r)
- {
- super();
- this.t = t; this.l = l; this.b = b; this.r = r;
- }
-
- public Insets getInsets() { return new Insets(t,l,b,r); }
- }
-
- class SDKInsetPanelVFL extends SDKInsetPanel
- {
- public SDKInsetPanelVFL(int t, int l, int b, int r)
- {
- super(t,l,b,r);
- setLayout(new UIVerticalFlowLayout(UIVerticalFlowLayout.FILL, 0));
- }
- }
-
- class SDKInsetPanelGL extends SDKInsetPanel
- {
- public SDKInsetPanelGL(int t, int l, int b, int r)
- {
- super(t,l,b,r);
- setLayout(new UIGridLayout(0, 1, 0, 1));
- }
- }
-
- class SDKInsetPanelBL extends SDKInsetPanel
- {
- public SDKInsetPanelBL(int t, int l, int b, int r)
- {
- super(t,l,b,r);
- setLayout(new UIBorderLayout(0, 0));
- }
- }
-