Results 1 to 2 of 2
  1. #1
    red55 is offline Member
    Join Date
    Apr 2008
    Posts
    1
    Rep Power
    0

    Default 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

  2. #2
    sukatoa's Avatar
    sukatoa is offline Senior Member
    Join Date
    Jan 2008
    Location
    Cebu City, Philippines
    Posts
    556
    Rep Power
    7

    Default

    if any of the text is in the text field i want a message displayed
    What message should be displayed when satisfied?

    regards,
    sukatoa

Similar Threads

  1. applets on mac what´s going on?
    By willemjav in forum Java Applets
    Replies: 6
    Last Post: 04-19-2008, 08:03 PM
  2. one more try, applets security
    By willemjav in forum Java Applets
    Replies: 0
    Last Post: 03-09-2008, 02:19 PM
  3. applets can´t be tricked
    By willemjav in forum Java Applets
    Replies: 0
    Last Post: 03-08-2008, 11:10 PM
  4. Applets and dll
    By peiceonly in forum Java Applets
    Replies: 1
    Last Post: 04-01-2007, 11:16 AM
  5. Applets having sound
    By peiceonly in forum Java Applets
    Replies: 2
    Last Post: 03-31-2007, 10:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •