< prev index next >

src/demo/share/jfc/SwingSet2/InternalFrameDemo.java

Print this page




  42 import java.awt.*;
  43 import java.awt.event.*;
  44 import java.beans.*;
  45 import java.util.*;
  46 import java.io.*;
  47 import java.applet.*;
  48 import java.net.*;
  49 
  50 /**
  51  * Internal Frames Demo
  52  *
  53  * @author Jeff Dinkins
  54  */
  55 public class InternalFrameDemo extends DemoModule {
  56     int windowCount = 0;
  57     JDesktopPane desktop = null;
  58 
  59     ImageIcon icon1, icon2, icon3, icon4;
  60     ImageIcon smIcon1, smIcon2, smIcon3, smIcon4;
  61 
  62     public Integer FIRST_FRAME_LAYER  = new Integer(1);
  63     public Integer DEMO_FRAME_LAYER   = new Integer(2);
  64     public Integer PALETTE_LAYER     = new Integer(3);
  65 
  66     public int FRAME0_X        = 15;
  67     public int FRAME0_Y        = 280;
  68 
  69     public int FRAME0_WIDTH    = 320;
  70     public int FRAME0_HEIGHT   = 230;
  71 
  72     public int FRAME_WIDTH     = 225;
  73     public int FRAME_HEIGHT    = 150;
  74 
  75     public int PALETTE_X      = 375;
  76     public int PALETTE_Y      = 20;
  77 
  78     public int PALETTE_WIDTH  = 260;
  79     public int PALETTE_HEIGHT = 260;
  80 
  81     JCheckBox windowResizable   = null;
  82     JCheckBox windowClosable    = null;
  83     JCheckBox windowIconifiable = null;
  84     JCheckBox windowMaximizable = null;




  42 import java.awt.*;
  43 import java.awt.event.*;
  44 import java.beans.*;
  45 import java.util.*;
  46 import java.io.*;
  47 import java.applet.*;
  48 import java.net.*;
  49 
  50 /**
  51  * Internal Frames Demo
  52  *
  53  * @author Jeff Dinkins
  54  */
  55 public class InternalFrameDemo extends DemoModule {
  56     int windowCount = 0;
  57     JDesktopPane desktop = null;
  58 
  59     ImageIcon icon1, icon2, icon3, icon4;
  60     ImageIcon smIcon1, smIcon2, smIcon3, smIcon4;
  61 
  62     public Integer FIRST_FRAME_LAYER  = Integer.valueOf(1);
  63     public Integer DEMO_FRAME_LAYER   = Integer.valueOf(2);
  64     public Integer PALETTE_LAYER     = Integer.valueOf(3);
  65 
  66     public int FRAME0_X        = 15;
  67     public int FRAME0_Y        = 280;
  68 
  69     public int FRAME0_WIDTH    = 320;
  70     public int FRAME0_HEIGHT   = 230;
  71 
  72     public int FRAME_WIDTH     = 225;
  73     public int FRAME_HEIGHT    = 150;
  74 
  75     public int PALETTE_X      = 375;
  76     public int PALETTE_Y      = 20;
  77 
  78     public int PALETTE_WIDTH  = 260;
  79     public int PALETTE_HEIGHT = 260;
  80 
  81     JCheckBox windowResizable   = null;
  82     JCheckBox windowClosable    = null;
  83     JCheckBox windowIconifiable = null;
  84     JCheckBox windowMaximizable = null;


< prev index next >