Information Search Program on the Internet

Hi all,
Do you know any program written in Java that go on the internet
and search for data that we specify. What kinda of java package
am I supposed to look at if I want to write one.
Thanks,
TC

yes sure..the following sode is a simple search engine that searches for the required keyword on the yahoo search engine.Hope it helps:
import java.net.*;
import java.io.*;
import javax.swing.*;
import java.awt.event.*;
import java.awt.*;
public class searchengine extends JFrame
JTextField text;
JButton search;
JPanel background;
String s;
String Searcher;
public searchengine()
     text=new JTextField();
     search=new JButton("Search YahOO");
     background=new JPanel();
     background.setBackground(new Color(250,255,205));
     background.setLayout(new BorderLayout());
this.getContentPane().add(background);
     background.setLayout(null);
     Rectangle r=new Rectangle(20,20,150,30);
     text.setBounds(r);
     r.translate(0,40);
     search.setBounds(r);
     search.setForeground(new Color(240,230,140));
     background.add(text);
     background.add(search);
     search.addActionListener(new ActionListener()
     public void actionPerformed(ActionEvent ae)
     System.out.println(     text.getText());
          Searcher="http://search.yahoo.com/bin/search?p="+text.getText()+"&w=dir&fr=op&o=a&h=&g=0&n=20";
          String[] exp=
{"C:\\Program Files\\Internet Explorer\\IEXPLORE",Searcher};
          try
          Runtime.getRuntime().exec(exp);
          catch(Exception e)
               e.printStackTrace();
     setVisible(true);
     setLocation(400,200);
     setSize(200,150);
addWindowListener(new WindowAdapter()
     public void windowClosing(WindowEvent w)
          hide();
public static void main(String []args)
     searchengine s1=new searchengine();
     s1.show();

Similar Messages

  • Java Program on the Internet -How? Urgent

    Hello,
    I developed a Mutithread TCPIP socket based Network program "Forex Simulator". It's an applet both from the server side and client side. The Program needs to access the socket as well as Database. The Program is simple. After starting server, many clients can connect and buy and sell currency.
    I ran this in my home LAN. Initially, I was having trouble with running applet which rejects socket connection. After searching on the net I modified the Java Run Time Environment java.Policy file and modify permission to connect to my server IP and it works.
    I have to upload this program on to internet in a shared server. What should I follow to successfully run this on the net.
    There are many java chat program, chart, forex simulator running on the internet. How can I implement my program like that.
    Thanking you.
    Please please reply me, if someone knows it.

    Thanks for your comments.
    1.- Applets are not server side application but, client side, this means that ALWAYS an applet is downloaded to each client machine and if your "server applet" opens sockets, then every client machine will have its sockets opened but not the web server.
    Now I understand what applet really does. My server applet opens socket in my local machine. But I don' want that. I want the program to open the socket on server that means in my case http://webpagedesignpro.com and client will connect to the port of that server.
    3.- To create a server on your web server you need to run a stand alone app on the server or use something like J2EE
    I badly need to implement my program on the internet. Is there any tutorials or example anywhere for "How to run standalone program on a web server " or J2ee.Standalone means it's not an applet, am I right? As ejp mentioned there is no server applet, so how can I make the serverside program running on a server where client can connect to that server.
    Finally, What are the steps of or what is the java technology which can run a chat server on the net where people from all over the world can chat to each other. My program is same as a chat server.
    Thanks again.

  • My iPad is crashing in programs and the internet.

    My iPad has been crashing in programs and the internet. It also seems very slow to open internet windows. I have to close and reopen a lot. What can be the problem/s and how can I fix this.

    Clear Safari and close the app completely. Close all other apps as well. After closing all of your apps, reboot your iPad and see if that helps the situation.
    Go to Settings>Safari>Clear Cookies and Data.
    If you are running iOS a 5 or 6 - Tap the home button once. Then tap the home button twice and the recents tray will appear at the bottom of the screen. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner of the app that you want to close. Close app of the apps like this. Tap the home button twice.
    If you are running iOS 7 - To close an app, drag the app up from the multitasking display. Double tap the home button and you will see apps lined up going left to right across the screen. Swipe to get to the app that you want to close and then swipe "up" on the app preview thumbnail to close it. Close all apps in the same manner.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • So I've changed my hard drive for an ssd and now I've been told to enable trim now I've got the apple cover will they show me how to enable it with out some program of the internet ?

    so I've changed my hard drive for an ssd and now I've been told to enable trim  ?  now I've got the apple cover will they show me how to enable it with out some program of the internet ?

    Use an app called chameleon ssd optimizer.
    I enabled trim with it after almost a year of having installed a Samsung 840 pro SSD and my read/write speeds almost quadrupled.
    I would definite;y advise using it even though Samsung SSD's come with there own garbage disposal.
    Hope that helps.

  • How to stop the information bar cmoing in the Internet Explorer with java

    hai all,
    iam new to this forum and posting a question on java application where i had a problem.
    I work in a software company. we have developed an application and it is in production and we had a small problem. we have deifferent kinds of reports te users can get dynamicalty based on theirn requet parameters. so when we are deployingthe application on server and accessing it from the client machine(bothe the server and client are diferent i mean different machines) they get an information bar that
    "To help protect your security, Internet Explorer blocked this site from downloading files to your computer. Click here for options". and for this we have given them the solutions for setting the security features for the
    Internet Explorer . but they want it to be done thru program such that they dont want to see that message. i need a small help for this.
    It would be very help ful for me in my carreer if i get a solution for this.

    I'm not 100% sure, but doesn't all applets have the same popup bar? I guess you can tell your customers to turn off their popup blocker beforehand. (This is what my uni does with WebCT Vista)

  • How to install a downloaded program from the internet

    I downloaded a program (DVD Fab) from the internet and when I try to install it - A box opens up with
    text that I can't even read and at the top is says "This fle must be opened with WIN32. Any help will be appreciated. TY----My E-Mail is [email protected]

    If it doesn't run under CrossOver Mac, you need Windows to use it.
    (54330)

  • I am trying to download a program off the internet.

    I am trying to download a program for school from this website http://snap2007.emcp.com/login/login.php It's telling me that I need internet explorer (which I have IE8) in order to download the training assessment I need for school. Does anyone know of a way I can download this program without changing firefox?

    You're welcome.
    Be aware that using the IE browser comes with all its vulnerabilities, so only use it on trusted websites.

  • TV programming using the internet has non-determinisitic results

    Sometimes the results show details about the program such as "Casablanca TCM Sun 9:30AM" while at other times it lists the "manual recording TCM Sun 9:30AM". Does anyone know how to always get the correct details about the recording requests? BTW, I am using Firefox 10.0.2

    It was our pleasure to help and glad things are showing up correctly now. Post anytime you need assistance.
    Anthony_VZ
    **If someones post has helped you, please acknowledge their assistance by clicking the red thumbs up button to give them Kudos. If you are the original poster and any response gave you your answer, please mark the post that had the answer as the solution**
    Notice: Content posted by Verizon employees is meant to be informational and does not supersede or change the Verizon Forums User Guidelines or Terms or Service, or your Customer Agreement Terms and Conditions or plan

  • When I try to install the program, it requests that I close firefox to continue. When I close the program from the internet, it still states that the program needs to be closed.

    It repreats itself from the beginning stating that firefox needs to be closed in order to continue.

    That would be my first guess.  You might be trying to install the 32 bit version of the program.
    Update the thread with more info on your apple software etc if its a 64 bit install you're trying to perform.

  • Cannot downoad files/programs from the internet, any suggestions on how to fix this problem? thanks!

    hi, i upgraded my previous version of firefox to firefox 4 and then added the toy factory theme to the firefox 4 browser. after trying to update my plugins, the files from the adobe site are not downloaded into a file on our computer.

    after reinstalling firefox 4, still unable to successfully download plugin program updates from the software publisher's websites.

  • How to begin learing Java Programming for the Internet?

    expecially for socket

    Just go to www.google.com and search for java+server+client+socket
    And then look at some source code...

  • My ipod touch works fine i can play games and search websites on the internet, but my ipod wont open websites when i click them. help please?

    opening websites wont work or load on my ipod touch. HELP

    there are no indications of connection error or anything, the url just simply wont load...

  • I can't open my texts, phone contacts, settings or search anything on the internet- help!

    I can't get my texts, phone contacts, or settings to open. when i press the icon it flashes and goes back to the home screen! Last time this happened I restarted the phone and lost all of my contacts. what can I do? I'm afraid to restart it again

    Have you tried resetting your device by pressing and holding the Home button and power button until the silver apple appears? This will not delete any data.

  • When search the internet sponsered links only appear no normal web search

    i installed vuse and without selecting has hijacked my search option on the internet. i have ininstalled all related programs made sure that google chrome is my browser but vuse is still coming up. it is only showing sponsered links and not the usual searches i get. the vuse icon still appears at the top of the web page. i have not vuse toolbar though

    Might be because of a malware.
    Run this-
    Malwarebytes - http://www.malwarebytes.org/mbam.php

  • E90 and Nokia Search program

    Sorry about all the posts all of a sudden, but I'm new to this device and things may not be as obvious as they are to some...
    I installed the free Nokia Search program using the "Download!" program on the phone. Going by the web site and some screenshots, it's supposed to put a text field onto the "Today" screen as a plugin, allowing quick access to a handful of search engines.
    Problem is, it doesn't. Why?
    The E90 is listed as compatible.

    I have just installed this prog on my E90 and it does not seem to be the same facitities as shown on the web site.
    http://europe.nokia.com/A4568517
    I cannot find My Content Search?
    Here in Finland there are Local search Web and Image search
    A Maps Viewer..that refuses to load via WiFI WLAN..it will only access the server via Internet Service.

Maybe you are looking for