import java.awt.*;
import java.net.URL;
import java.net.MalformedURLException;

public class BentLnk2 extends java.applet.Applet
{
Color bgColor=new Color(255,255,255);
String items[]={"Bentonite Mine Map","Bentonite Mining","Bentonite Corporation",
"M-1, LLC","Wyo-Ben, Inc.","American Colloid"};
String URL1="http://www.wma-minelife.com/bent/BENTPAGE/bntfrm01.htm";
String URL2="http://www.wma-minelife.com/bent/bentmine/bentmine.htm";
String URL3="http://www.wma-minelife.com/bent/bentcorp.html";
String URL4="http://www.midf.com/lowframe.html";
String URL5="http://www.wyoben.com";
String URL6="http://www.colloid.com";
URL theURL;
Choice choice=new Choice();
public void init()
{
setBackground(bgColor);
for (int i=0;i<items.length;i++)
{
choice.addItem(items[i]);
}
add(choice);
}
public boolean action(Event evt, Object arg)
{
if(evt.target instanceof Choice)
{
if(arg=="Bentonite Mine Map")
{
try {theURL=new URL(URL1);}
catch (MalformedURLException e)
{
System.out.println("Bad URL; "+theURL);
}
}
if(arg=="Bentonite Mining")
{
try {theURL=new URL(URL2);}
catch (MalformedURLException e)
{
System.out.println("Bad URL: "+theURL);
}
}
if(arg=="Bentonite Corporation")
{
try {theURL=new URL(URL3);}
catch (MalformedURLException e)
{
System.out.println("Bad URL: "+theURL);
}
}
if (arg=="M-1, LLC")
{
try {theURL=new URL(URL4);}
catch (MalformedURLException e)
{
System.out.println("Bad URL: "+theURL);
}
}
if (arg=="Wyo-Ben, Inc.")
{
try {theURL=new URL(URL5);}
catch (MalformedURLException e)
{
System.out.println("Bad URL: "+theURL);
}
}
if (arg=="American Colloid")
{
try {theURL=new URL(URL6);}
catch (MalformedURLException e)
{
System.out.println("Bad URL: "+theURL);
}
}

getAppletContext().showDocument(theURL);
}
return true;
}
}


