Article View: es.comp.lenguajes.java
Article #17090Re: Como abrir pagWeb desde un applet
From: David
Date: Tue, 05 Dec 2000 00:12
Date: Tue, 05 Dec 2000 00:12
25 lines
1678 bytes
1678 bytes
Hola Alberto
Pues muy sencillo:
public void loadLink(String link) {
AppletContext ac = getAppletContext();
java.net.URL url = getCodeBase();
try {
ac.showDocument(new java.net.URL(url+link), "_blank");
}
catch(java.net.MalformedURLException e) {
showStatus(url+link+" no encontrado");
}
return;
}
Salud
David
"Alberto Garz�s" <jgarzas@wanadoo.es> escribi� en el mensaje
news:3A2C0A58.EA5FCF56@wanadoo.es...
> ...
> Yo me refiero a abrir una URL en otra pantalla del navegador....
> Gracias!
Technical Details
Message-ID:
<90hbus$f28$1@titan.bt.es>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!grolier!btnet-peer0!btnet-peer!btnet!newsfeed.bt.es!news.bt.es!not-for-mailReferences:
<3A294505.CF3A311@wanadoo.es> <90frld$fnh$1@titan.bt.es> <3A2C0A58.EA5FCF56@wanadoo.es>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: 1116f3,c900bcd2e9e7e302 X-Google-Attributes: gid1116f3,public X-Google-ArrivalTime: 2000-12-04 16:16:23 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!grolier!btnet-peer0!btnet-peer!btnet!newsfeed.bt.es!news.bt.es!not-for-mail From: "David" <sesamo@teleline.es> Newsgroups: es.comp.lenguajes.java Subject: Re: Como abrir pagWeb desde un applet Date: Tue, 5 Dec 2000 01:12:50 +0100 Organization: BT Tel. Netnews service (readers) Lines: 27 Message-ID: <90hbus$f28$1@titan.bt.es> References: <3A294505.CF3A311@wanadoo.es> <90frld$fnh$1@titan.bt.es> <3A2C0A58.EA5FCF56@wanadoo.es> NNTP-Posting-Host: cable41a100.usuarios.retecal.es Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Trace: titan.bt.es 975975196 15432 212.22.41.100 (5 Dec 2000 00:13:16 GMT) X-Complaints-To: abuse@bt.es NNTP-Posting-Date: 5 Dec 2000 00:13:16 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400