|
search facilty in applets
i am having trouble with adding a search facilty in java applets,
i want the user to enter some text and if any of the text is the same as what i have set in an array then i want some information i have stored to be displayed. i am using these
import java.applet.Applet;
import java.awt.*;
import java.awt.event.*;
import java.awt.Graphics;
basically already have a textfield, when text is entered i will press a button, which then compares the text in the textfield with any of the arrays i have set with specific text e.g
String search1[] = {"fire", "molten", "lava"};
String search2[] = {"plane", "runway", };
if any of the text is in the text field i want a message displayed
thank you any help would be appreciated
|