This discussion is archived
0 Replies Latest reply: Sep 7, 2012 4:42 AM by 949976 RSS

Adding desktop API to java swings

949976 Newbie
Currently Being Moderated
Hi,


I want to open the default web browser through java. So, I used desktop api to open the default web browser and its working fine also.

I tried like this:

if(desktop.isDesktopSupported())
               {
                    desktop.getDesktop().browse(new URI("http://www.aamec.com"));
               }


Now, I want to add the opened file to internal frame of my application. I tried using add() but it's not working..

Pls help me out..



Thanks in advance,

M.Sivapreeya

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points