Anyone know code to open browser when JButton is clicked...Urgent!!!!

Hello there,
Does anyone know how to open a browser (i.e., i want to run servlet program http://localhost:8080/register.html) when JButton is clicked.
Any help will be appreciated..please
Sangeetha.

Hi
on the onclick event of the JButton give this code
if ur working on WIn NT
try {
     Runtime r = Runtime.getRuntime();
     r.exec("cmd /c start iexplore");
     }catch
     (Exception e) {}
     

Similar Messages

  • Does anyone know what Error: 5 mean when trying to open up InDesign CS4

    Does anyone know what Error: 5 mean when trying to open up InDesign CS4?

    Opening the program, or opening a file?

  • Does anyone know how to open the 24" iMac?

    I have the 2.8Ghz 24" iMac. Does anyone know how to open it?
    Unfortunately the whole thing is screwless.

    FYI, the only Mac you can upgrade the GPU in is the Mac Pro now.
    Those kinds of discoveries are pretty uncommon with Apple stuff. But you could always use a TV tuner (coughelgatocough) as a video input. Might as well use your iMac as a TV that you can actually hook a PS3 up to
    And also if you want to use your iMac (or some PC) as another monitor for another Mac there's ScreenRecycler.

  • TS3430 does anyone know how to fix itunes when you get the message that it has encountered a problem and needs to close

    does anyone know how to fix itunes when you get the message that it has encountered a problem and needs to close

    You are using ADE on Windows or Mac ? and their versions ??
    Please restart your machine and try once again.
    Thanks

  • Does anyone know how to open a .shs file on Word 2008 for Mac? Any ideas??

    Does anyone know how to open a .shs file on Word 2008 for Mac? Any ideas??

    Ask on the Microsoft Mac forums:  http://answers.microsoft.com/en-us/mac

  • Downloaded mt lion on my iMac, now when i start the computer my outlook email automatically opens.  When I right click on the mail icon it isn't checked to open on startup.  How do i correct this

    downloaded mt lion on my iMac, now when i start the computer my outlook email automatically opens.  When I right click on the mail icon it isn't checked to open on startup.  How do i correct this

    This is probabaly caused by the resume feature. When you log out, uncheck the box that appears.

  • Anyone know how to open an Aspire 3000 series laptop?

    I have reason to suspect my laptop's fan and heatsinks are full of dust, but I can't get at them; the machine is very difficult to open, and some of the screws are covered by the monitor panel. Does anyone know how get at an Aspire 3680's fan?
    (The instruction manual, unsurprisingly, is useless on this topic.)
    Last edited by Gullible Jones (2008-06-15 03:04:06)

    Maybe this will give you a basic impression:
    http://www.youtube.com/watch?v=pPdw-pkS88k
    And even if your notebook is an Aspire 3680, you can search the web for "Acer 5580 fan problem".
    Last edited by sph (2008-06-15 19:57:57)

  • Where is PLIST to "OPEN WITH" when you right click on a file ?

    When I right click on a file to open it using the "OPEN WITH" command it shows two or three of the SAME applications. For example it shows preview, preview, and preview if I right click on a picture on my desktop. These are ghost icons that all open the same version of preview.
    I think a plist file is messed up but what one takes care of the 'OPEN WITH' command when you right click on an icon?
    I would like a few opinions of possible or any ideas.
    These started after I cloned my hard drive. I cloned it with three different applications and all produce the same results.
    Thanks

    red_menace you are Not a menace. You are a genius. It fixed my problem!
    I put this code in the terminal:
    /System/Library/Frameworks/ApplicationServices.framework/\Frameworks/LaunchServi ces.framework/Support/lsregister \-kill -r -domain local -domain system -domain user
    Then press return. Wait until terminal returns to the command line. Quit Terminal. After that, log out and back in or restart.
    IT WAS FIXED!!!
    THANKS A MILLION!!

  • LightRoom 2.3 Does not show up in "open With" when image right clicked..Why?

    Hi,
    I noticed that when I right click on an image and highlight OPEN WITH LightRoom does not show up as a choice.. Just CS4 and other programs. Is there a way to get it to show up?

    You can do it. Right-clicking and "opening with" LR is no different than dragging a file from Windows Explorer into the grid view. In either case the import dialog will be launched. If it's already in the catalog you'll get that dialog.
    Windows is seemingly unpredictable from time to time as to adding file associations to the context menu. In any case, if you go to the bottom and click "choose program" you can select LR from the expanded list, or navigate to find it if necessary (which shouldn't be necessary).
    Typically once you choose it once, it will continue to appear in the short list for that file type, though it depends what new pieces of software you install and how they're associated with file types either upon or after installation.
    You can also drag the file(s) from your Explorer window into the grid view, or drag onto the LR icon on your desktop or in your quick launch, which will launch LR and bring up the appropriate dialog.

  • How to open settings when tap to click is disabled

    How can i go to settings menu when tap to click is disabled

    Hello J3FF1,
    I assume you are talking about the touchpad on a laptop.
    It helps to give as much info as possible when asking for help.
    What is the model number of your system and the OS version?
    You can navigate to the mouse/touchpad settings via the control panel. Find the Tapping tab  or look for the Synaptics tab and locate Tapping from there to check or uncheck the box (depending on if your laptop is Synaptics or Alms based).
    If for some reason its not showing up in the Settings window, you may need to install the touchpad driver for your system.
    I would need to know what system you have in order to find the right driver in that case.

  • Custom T-Code to open Browser...

    Hi
    Please suggest steps in getting the following accomplished:
    1) I want to create a custom T-Code that does nothing but open a browser with a specific URL. For example, i want to create a t-code called Z_00_01 that will open a browser defaulting to http://www.google.com
    Suggest how i can go about in doing that. Let me know.
    Text removed by moderator- read the Terms of Engagement about offering points
    Thank you

    Advait.
    Thank you. You might find my response odd... I'm not an SAP person.. just getting my hands into it. If you suggest what TCode to use to write a custom Report Program... that would be great.
    I hope you dont mind.
    Thanks again.

  • Does anyone know how to open link in mail? iso7 Iphone4s

    It seems to me that quite a few people are having the same problem. Does anyone have a solution to this yet? When i tap on a link in my mail and then tap open nothing happens.
    Someone please help!

    You can open your World Book by installing Snow Leopard Server ($20 - 1.800.MYAPPLE (1.800.692.7753) - Apple Part Number: MC588Z/A (telephone orders only)) into Parallels ($79) for use in Mavericks:
    Installing Snow Leopard Server into Parallels for DUMMIES:
    http://forums.macrumors.com/showpost.php?p=17285039&postcount=564

  • Anyone knows Code For Text Background Color

    Hello Everyone. I am making a game Black Jack. I did averything the game is working perfectly but with one BUG!. I put a picture of casino table in the backgground...and when i ask the user to enter if he wants to hit or stay ...my backround color where im typing is WHITE ...so it screws half of the picture...it goes over the picture.....so im wondering if there is a code to set textBackgroundColor to "TRANSPARENT"...so when i enter "hit" or "stay"...it just types the words put behind the words is the picture i set...not the white background behind the text....i dont know if you can understand me good....but tnx for help anyways!!

    hmmm...it appears that the code is right...because wheni wrote c.setTextBackgroundColor (Color.Translucent); ........it tells me that there is no color Translucent but that there is TRANSLUCENT....same thing just with capitals...and when i put that in it wont work....just gives an error saying "No applicable overload for the method named setTextBackgroundColor was found in type hsa.Console....thank you very much though...

  • Does anyone know how to open power pc apps in Maveriks

    I cannot open world book anymore since I upgraded to Mavericks.  I keep on getting a pop-up message saying power pc apps no longer supported.  Does anyone please please know how to fix this?

    You can open your World Book by installing Snow Leopard Server ($20 - 1.800.MYAPPLE (1.800.692.7753) - Apple Part Number: MC588Z/A (telephone orders only)) into Parallels ($79) for use in Mavericks:
    Installing Snow Leopard Server into Parallels for DUMMIES:
    http://forums.macrumors.com/showpost.php?p=17285039&postcount=564

  • HT204382 I have a file which I cannot open onb my computer.   Would anyone know how to open a file with name ending in "flv"?

    I have a few files on my computer which I cannot open.   The file name ends in "flv"   Can anyone help with this?

    You could download and install the following Free Player:
          http://download.cnet.com/Elmedia-Player/3000-13632_4-86189.html

Maybe you are looking for

  • HT5554 My phone keeps saying invalid SIM and doesn't work.  How do I fix this? I didn't even know iphones had SIM cards

    If i turn my phone off for a while and turn it back on, I will have service for a couple of minutes.  And then it says failure SIM or invalid SIM or no SIM. Then I have no service and can only use my phone with wifi making it no better than a ipod

  • Inter company order billing error

    Hi Experts , Purchase order (Inter company order ) and delivery note have been placed ,when created intercompany billing ,we got message " Error no WBS billing element found while substituting WBS element 00003799" , pls give me a hand how to solve i

  • How to create a database using Cloudscape provided by Weblogic

    Hi, I am new to EJB and i am trying to run the sample Entity bean given in the book "Enterprise Java Beans" by Richard Monson-Haefel.In the 4th chapter he has given a example Cabin Entity bean. My problem is i am not able to execute Cloudscape to cre

  • Ringtones not showing up in my iTunes

    The songs that I've downloaded that I know can be converted into ringtones are not showing up in the ringtone column in my iTunes (yes, I have 'show ringtones' selected in the 'view options' folder). When ringtones was first offered, everything worke

  • Support Package PI_BASIS 2005_1_700

    Hi, I would like to import PI_BASIS 2005_1_700, because this patch is prerequisite for the following patches. I unzipped and upload it. It can not import this in the ta saint, because It can not be selected. This patch will not be displayed. SAP_ABA