home *** CD-ROM | disk | FTP | other *** search
/ The Net: Ultimate Internet Guide / WWLCD1.ISO / pc / java / unuy2wen / cybcerone / orient / orientdesc.java < prev    next >
Encoding:
Java Source  |  1996-08-14  |  772 b   |  35 lines

  1. // OrientDesc.java
  2. // 16.03.96
  3. //
  4. // the description on the orient screen
  5.  
  6. package cybcerone.orient;
  7.  
  8. import java.awt.Color;
  9. import java.awt.Rectangle;
  10.  
  11. import cybcerone.utils.Appletlike;
  12. import cybcerone.utils.ScrollingPanel;
  13.  
  14. /**
  15.  * Tells you what you're looking at.
  16.  */
  17. class OrientDesc extends ScrollingPanel {
  18.   private static final Rectangle placement = new Rectangle (734 + 5, 393, 290 - 10, 30);
  19.  
  20.   private static final String id = "OrientDesc";
  21.   private static final String statusText = "The selected region";
  22.  
  23.   private Color textColor = new Color (160, 160, 160);
  24.   
  25.   OrientDesc (Appletlike app) {
  26.     super (id, statusText, app);
  27.     reshape (placement);
  28.     setColor (textColor);
  29.   }
  30.  
  31.   void update (Maplike newMap) {
  32.     setText (newMap.getDesc ());
  33.   }
  34. }
  35.