home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / esc.jar / com / extensibility / app / UI$StaticTextArea.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-06-30  |  680 b   |  23 lines

  1. package com.extensibility.app;
  2.  
  3. import java.awt.Insets;
  4. import javax.swing.JTextArea;
  5. import javax.swing.text.JTextComponent;
  6.  
  7. public class UI$StaticTextArea extends JTextArea {
  8.    public UI$StaticTextArea() {
  9.       ((JTextComponent)this).setEditable(false);
  10.       ((JTextArea)this).setWrapStyleWord(true);
  11.       ((JTextArea)this).setLineWrap(true);
  12.       ((JTextComponent)this).setMargin(new Insets(0, 0, 0, 0));
  13.    }
  14.  
  15.    public boolean isManagingFocus() {
  16.       return false;
  17.    }
  18.  
  19.    public boolean isFocusTraversable() {
  20.       return false;
  21.    }
  22. }
  23.