home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 14 / IOPROG_14.ISO / soft / sdkjava / sdkjava.exe / SDKJava.cab / Samples / AFC / FxTextures / Src / SDKCtrlPnl.java < prev    next >
Encoding:
Java Source  |  1998-03-05  |  1.1 KB  |  45 lines

  1. //
  2. // (c) 1998 Microsoft Corporation.  All rights reserved.
  3. //
  4. import java.awt.Event;
  5. import java.awt.Image;
  6. import java.awt.Insets;
  7. import com.ms.ui.*;
  8.  
  9. public class SDKCtrlPnl extends UIPanel implements SDKConsts
  10. {
  11.     private TexturePnl texturepnl;
  12.     private BtnPanel btns;
  13.  
  14.     public SDKCtrlPnl(UIApplet applet, UIFrame frame)
  15.     {
  16.         setLayout(new UIBorderLayout(0,0));
  17.  
  18.         // Initialized load on demand images
  19.         SDKImages.init(applet, frame);
  20.  
  21.         // Create main UIGroup, add to this panel...
  22.         SDKInsetGroup main = new SDKInsetGroup("This Fx has bold TEXTURES", 20,10,10,10);
  23.         // ...and split it vertically.
  24.         main.setLayout(new UISplitLayout(0, 130));
  25.  
  26.         // Create display panel
  27.         texturepnl = new TexturePnl();
  28.         UIGroup group = new UIGroup("Test Area");
  29.         group.setLayout(new UIBorderLayout());
  30.         group.add(texturepnl, "center");
  31.  
  32.         // Create btn panel
  33.         btns = new BtnPanel(texturepnl);
  34.  
  35.         main.add(btns, "nw"); main.add(new SDKInsetPanelBL(group, 0,5,0,0), "se");
  36.         add(main, "center");
  37.  
  38.         texturepnl.repaint();
  39.     }
  40.  
  41.     public void setInitialFocus() { }
  42.  
  43.     public Insets getInsets() { return new Insets(5,5,5,5); }
  44. }
  45.