DEF_COMPONENTNAME
URLTextComponent_Button1
DEF_SUPERCLASS
Button
DEF_SUPERCOMPONENT
URLTextComponent
DEF_PACKAGE
mojo
networking
subcomponents
urltextcomponent
DEF_ENDLIST
DEF_SUBCOMPONENTLIST
DEF_ENDLIST
DEF_SUBCOMPONENTCLASSLIST
DEF_ENDLIST
DEF_CATEGORY

DEF_BITMAP

DEF_THUMBNAIL_UP

DEF_THUMBNAIL_DOWN

DEF_VISUAL
DEF_IMPORTS
DEF_ENDLIST
DEF_REQUIRES
DEF_ENDLIST
DEF_IMPLEMENTS
DEF_ENDLIST
DEF_DECLARATION
// A class that produces a labeled button component.
DEF_ENDLIST
DEF_EVENT
public boolean action(Event evt, Object what)
{
   // local variables

  URL tempURL = null;
  URL hostURL = null;
  String aLine = "";

   // event body
  try {
    if (parent.getUseDocumentBase() == true)
      hostURL = new URL(applet.getDocumentBase(), parent.getFilename());
    else  // using current applet's CodeBase
      hostURL = new URL(applet.getCodeBase(), parent.getFilename());
  }
  catch (MalformedURLException e) {
    System.out.println("MalforedURLExeption using File: " + parent.getFilename());
  }
  try {
    InputStream hostInputStream = hostURL.openStream();
    // Creating DataInputStream wrapped around BufferedInputStream for better performance.
    DataInputStream dataStream = new DataInputStream(new BufferedInputStream(hostInputStream));
    while ((aLine = dataStream.readLine()) != null) { ;
      parent.TextArea1.appendText(aLine + "\n");
    }
  }
  catch (IOException e)   {
    System.out.println("IOExeption while reading: " + hostURL.toString());
  }
   return(true);
}
DEF_ENDLIST
DEF_PROPERTY
Label
String
setLabel(AVALUE);
AVALUE = getLabel();
Read
DEF_ENDLIST
DEF_PROPERTY
Top
int
move(bounds().x, AVALUE);
AVALUE = bounds().y;
230
DEF_ENDLIST
DEF_PROPERTY
Left
int
move(AVALUE, bounds().y);
AVALUE = bounds().x;
110
DEF_ENDLIST
DEF_PROPERTY
Height
int
resize(bounds().width, AVALUE);
AVALUE = bounds().height;
25
DEF_ENDLIST
DEF_PROPERTY
Width
int
resize(AVALUE, bounds().height);
AVALUE = bounds().width;
75
DEF_ENDLIST
DEF_PROPERTY
ForegroundColor
Color
setForeground(AVALUE);
AVALUE = getForeground();
Color.black
DEF_ENDLIST
DEF_PROPERTY
BackgroundColor
Color
setBackground(AVALUE);
AVALUE = getBackground();
Color.lightGray
DEF_ENDLIST
DEF_PROPERTY
FontName
String
setFont(new Font(AVALUE, getFont().getStyle(), getFont().getSize()));
AVALUE = getFont().getName();
Courier
DEF_ENDLIST
DEF_PROPERTY
FontStyle
int
setFont(new Font(getFont().getName(), AVALUE, getFont().getSize()));
AVALUE = getFont().getStyle();
Font.PLAIN
DEF_ENDLIST
DEF_PROPERTY
FontSize
int
setFont(new Font(getFont().getName(), getFont().getStyle(), AVALUE));
AVALUE = getFont().getSize();
10
DEF_ENDLIST
DEF_ENDCOMPONENT
DEF_COMPONENTNAME
URLTextComponent_Button2
DEF_SUPERCLASS
Button
DEF_SUPERCOMPONENT
URLTextComponent
DEF_PACKAGE
mojo
networking
subcomponents
urltextcomponent
DEF_ENDLIST
DEF_SUBCOMPONENTLIST
DEF_ENDLIST
DEF_SUBCOMPONENTCLASSLIST
DEF_ENDLIST
DEF_CATEGORY

DEF_BITMAP

DEF_THUMBNAIL_UP
nbutn2.bmp
DEF_THUMBNAIL_DOWN

DEF_VISUAL
DEF_IMPORTS
DEF_ENDLIST
DEF_REQUIRES
DEF_ENDLIST
DEF_IMPLEMENTS
DEF_ENDLIST
DEF_DECLARATION
// A class that produces a labeled button component.
DEF_ENDLIST
DEF_EVENT
public boolean action(Event evt, Object what)
{
   // local variables

   // event body
 
   parent.TextArea1.setText("");

   return(true);
}
DEF_ENDLIST
DEF_PROPERTY
Label
String
setLabel(AVALUE);
AVALUE = getLabel();
Clear
DEF_ENDLIST
DEF_PROPERTY
Top
int
move(bounds().x, AVALUE);
AVALUE = bounds().y;
230
DEF_ENDLIST
DEF_PROPERTY
Left
int
move(AVALUE, bounds().y);
AVALUE = bounds().x;
240
DEF_ENDLIST
DEF_PROPERTY
Height
int
resize(bounds().width, AVALUE);
AVALUE = bounds().height;
25
DEF_ENDLIST
DEF_PROPERTY
Width
int
resize(AVALUE, bounds().height);
AVALUE = bounds().width;
75
DEF_ENDLIST
DEF_PROPERTY
ForegroundColor
Color
setForeground(AVALUE);
AVALUE = getForeground();
Color.black
DEF_ENDLIST
DEF_PROPERTY
BackgroundColor
Color
setBackground(AVALUE);
AVALUE = getBackground();
Color.lightGray
DEF_ENDLIST
DEF_PROPERTY
FontName
String
setFont(new Font(AVALUE, getFont().getStyle(), getFont().getSize()));
AVALUE = getFont().getName();
Courier
DEF_ENDLIST
DEF_PROPERTY
FontStyle
int
setFont(new Font(getFont().getName(), AVALUE, getFont().getSize()));
AVALUE = getFont().getStyle();
Font.PLAIN
DEF_ENDLIST
DEF_PROPERTY
FontSize
int
setFont(new Font(getFont().getName(), getFont().getStyle(), AVALUE));
AVALUE = getFont().getSize();
10
DEF_ENDLIST
DEF_ENDCOMPONENT
DEF_COMPONENTNAME
URLTextComponent_TextArea1
DEF_SUPERCLASS
TextArea
DEF_SUPERCOMPONENT
URLTextComponent
DEF_PACKAGE
mojo
networking
subcomponents
urltextcomponent
DEF_ENDLIST
DEF_SUBCOMPONENTLIST
DEF_ENDLIST
DEF_SUBCOMPONENTCLASSLIST
DEF_ENDLIST
DEF_CATEGORY

DEF_BITMAP

DEF_THUMBNAIL_UP
nmemo.bmp
DEF_THUMBNAIL_DOWN

DEF_VISUAL
DEF_IMPORTS
DEF_ENDLIST
DEF_REQUIRES
DEF_ENDLIST
DEF_IMPLEMENTS
DEF_ENDLIST
DEF_DECLARATION
// A TextArea object is a multi-line area that displays text. It can
// be set to allow editing or read-only modes.

DEF_ENDLIST
DEF_PROPERTY
Top
int
move(bounds().x, AVALUE);
AVALUE = bounds().y;
20
DEF_ENDLIST
DEF_PROPERTY
Left
int
move(AVALUE, bounds().y);
AVALUE = bounds().x;
30
DEF_ENDLIST
DEF_PROPERTY
Height
int
resize(bounds().width, AVALUE);
AVALUE = bounds().height;
186
DEF_ENDLIST
DEF_PROPERTY
Width
int
resize(AVALUE, bounds().height);
AVALUE = bounds().width;
365
DEF_ENDLIST
DEF_PROPERTY
ForegroundColor
Color
setForeground(AVALUE);
AVALUE = getForeground();
Color.black
DEF_ENDLIST
DEF_PROPERTY
BackgroundColor
Color
setBackground(AVALUE);
AVALUE = getBackground();
Color.white
DEF_ENDLIST
DEF_PROPERTY
FontName
String
setFont(new Font(AVALUE, getFont().getStyle(), getFont().getSize()));
AVALUE = getFont().getName();
Courier
DEF_ENDLIST
DEF_PROPERTY
FontStyle
int
setFont(new Font(getFont().getName(), AVALUE, getFont().getSize()));
AVALUE = getFont().getStyle();
Font.PLAIN
DEF_ENDLIST
DEF_PROPERTY
FontSize
int
setFont(new Font(getFont().getName(), getFont().getStyle(), AVALUE));
AVALUE = getFont().getSize();
10
DEF_ENDLIST
DEF_ENDCOMPONENT
DEF_COMPONENTNAME
URLTextComponent
DEF_SUPERCLASS
Panel
DEF_SUPERCOMPONENT
Object
DEF_PACKAGE
mojo
networking
DEF_ENDLIST
DEF_SUBCOMPONENTLIST
TextArea1
Button1
Button2
DEF_ENDLIST
DEF_SUBCOMPONENTCLASSLIST
URLTextComponent_TextArea1
URLTextComponent_Button1
URLTextComponent_Button2
DEF_ENDLIST
DEF_CATEGORY
Networking
DEF_BITMAP

DEF_THUMBNAIL_UP
url.bmp
DEF_THUMBNAIL_DOWN
2-url.bmp
DEF_VISUAL
DEF_TOOL
DEF_PANEL
DEF_IMPORTS
java.net.URL
java.net.MalformedURLException
java.io.*
DEF_ENDLIST
DEF_REQUIRES
DEF_ENDLIST
DEF_IMPLEMENTS
DEF_ENDLIST
DEF_DECLARATION
// A Panel Container class. This produces a generic container.

  // private variables used for properties

  String filename;            // Filename to load

  boolean useDocumentBase;    // when true the DocumentBase is used; when false the CodeBase is used.
                              // DocumentBase is the URL of the HTML file contain the current Applet.
                              // CodeBase is the URL of the current Applet.
DEF_ENDLIST
DEF_METHOD
public void setFilename(String aFilename) {

  filename = aFilename;
}
DEF_ENDLIST
DEF_METHOD
public String getFilename() {

  return(filename);
}
DEF_ENDLIST
DEF_METHOD
public boolean getUseDocumentBase() {

  return(useDocumentBase);
}
DEF_ENDLIST
DEF_METHOD
public void setUseDocumentBase(boolean aBoolean) {

  useDocumentBase = aBoolean;
}
DEF_ENDLIST
DEF_PROPERTY
Filename
String
setFilename(AVALUE);
AVALUE = getFilename();

DEF_ENDLIST
DEF_PROPERTY
Use DocumentBase
boolean
setUseDocumentBase(AVALUE);
AVALUE = getUseDocumentBase();
false
DEF_ENDLIST
DEF_PROPERTY
Top
int
move(bounds().x, AVALUE);
AVALUE = bounds().y;
10
DEF_ENDLIST
DEF_PROPERTY
Left
int
move(AVALUE, bounds().y);
AVALUE = bounds().x;
40
DEF_ENDLIST
DEF_PROPERTY
Height
int
resize(bounds().width, AVALUE);
AVALUE = bounds().height;
284
DEF_ENDLIST
DEF_PROPERTY
Width
int
resize(AVALUE, bounds().height);
AVALUE = bounds().width;
430
DEF_ENDLIST
DEF_PROPERTY
ForegroundColor
Color
setForeground(AVALUE);
AVALUE = getForeground();
Color.black
DEF_ENDLIST
DEF_PROPERTY
BackgroundColor
Color
setBackground(AVALUE);
AVALUE = getBackground();
Color.lightGray
DEF_ENDLIST
DEF_PROPERTY
FontName
String
setFont(new Font(AVALUE, getFont().getStyle(), getFont().getSize()));
AVALUE = getFont().getName();
Courier
DEF_ENDLIST
DEF_PROPERTY
FontStyle
int
setFont(new Font(getFont().getName(), AVALUE, getFont().getSize()));
AVALUE = getFont().getStyle();
Font.PLAIN
DEF_ENDLIST
DEF_PROPERTY
FontSize
int
setFont(new Font(getFont().getName(), getFont().getStyle(), AVALUE));
AVALUE = getFont().getSize();
10
DEF_ENDLIST
DEF_ENDCOMPONENT
