home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 14 / IOPROG_14.ISO / soft / sdkjava / sdkjava.exe / SDKJava.cab / AFC102 / Samples / Viewers / Src / TabViewerPanel.java < prev   
Encoding:
Java Source  |  1998-03-05  |  1.9 KB  |  63 lines

  1. //
  2. // (c) 1997 Microsoft Corporation.  All rights reserved.
  3. //
  4. import java.awt.Event;
  5. import java.awt.Insets;
  6. import com.ms.ui.*;
  7. import com.ms.fx.*;
  8.  
  9. public class TabViewerPanel extends UIPanel implements SDKConsts
  10. {
  11.     public TabViewerPanel()
  12.     {
  13.         SDKInsetPanelBL ipnl;
  14.  
  15.         setLayout(new UIBorderLayout(0,0));
  16.  
  17.         UITabViewer tbv1,tbv2,tbv3,tbv4,tbv5, tbv6;
  18.  
  19.         tbv1 = new UITabViewer(); tbv2 = new UITabViewer();
  20.         tbv3 = new UITabViewer(); tbv4 = new UITabViewer();
  21.         tbv5 = new UITabViewer(); tbv6 = new UITabViewer();
  22.  
  23.         tbv6.add("This better be it...", new UIText("You can smell it!"));
  24.         tbv6.add("...for UITabViewer", new UIItem(SDKImages.get(RUSSIAN), "Yea!"));
  25.         ipnl = new SDKInsetPanelBL(4,4,4,4);
  26.         ipnl.add(tbv6);
  27.  
  28.         tbv5.add("Maybe the last...", new UIText("You can taste it!"));
  29.         tbv5.add("...UITabViewer", ipnl);
  30.         ipnl = new SDKInsetPanelBL(4,4,4,4);
  31.         ipnl.add(tbv5);
  32.  
  33.         tbv4.add("Yet another...", new UIText("You're getting closer!"));
  34.         tbv4.add("...UITabViewer", ipnl);
  35.         ipnl = new SDKInsetPanelBL(4,4,4,4);
  36.         ipnl.add(tbv4);
  37.  
  38.         tbv3.add("Still another...", new UIText("Almost there!"));
  39.         tbv3.add("...UITabViewer", ipnl);
  40.         ipnl = new SDKInsetPanelBL(4,4,4,4);
  41.         ipnl.add(tbv3);
  42.  
  43.         tbv2.add("Another...", new UIText("Keep Looking!"));
  44.         tbv2.add("...UITabViewer", ipnl);
  45.         ipnl = new SDKInsetPanelBL(4,4,4,4);
  46.         ipnl.add(tbv2);
  47.  
  48.         tbv1.add("All of these...", new UIText("Nope!"));
  49.         tbv1.add("...tabs are...", new UIText("Nada!"));
  50.         tbv1.add("...added to the...", new UIText("Naught!"));
  51.         tbv1.add("...same UITabViewer.", new UIText("Zippo!"));
  52.         tbv1.add("One of these...", new UIText("Not!"));
  53.         tbv1.add("...tabs leads...", new UIText("Nothing!"));
  54.         tbv1.add("...to something...", new UIText("Zero!"));
  55.         tbv1.add("...other than...", ipnl);
  56.         tbv1.add("...just text.", new UIText("Zilch!"));
  57.         ipnl = new SDKInsetPanelBL(4,4,4,4);
  58.         ipnl.add(tbv1);
  59.  
  60.         add(ipnl, "Center");
  61.     }
  62. }
  63.