hoe werkt showDocument(URL url,String target)

Pagina: 1
Acties:
  • 51 views sinds 30-01-2008

  • dexter07051982
  • Registratie: November 2001
  • Laatst online: 11-07 22:38
http://java.sun.com/j2se/1.4/docs/api/index.html

showDocument
public void showDocument(URL url,
String target)
Requests that the browser or applet viewer show the Web page indicated by the url argument. The target argument indicates in which HTML frame the document is to be displayed. The target argument is interpreted as follows:

"_self" Show in the window and frame that contain the applet.
"_parent" Show in the applet's parent frame. If the applet's frame has no parent frame, acts the same as "_self".
"_top" Show in the top-level frame of the applet's window. If the applet's frame is the top-level frame, acts the same as "_self".
"_blank" Show in a new, unnamed top-level window.
name Show in the frame or window named name. If a target named name does not already exist, a new top-level window with the specified name is created, and the document is shown there.

An applet viewer or browser is free to ignore showDocument.


Parameters:
url - an absolute URL giving the location of the document.
target - a String indicating where to display the page.
hoe moet ik dit werkend maken. als ik namelijk met this probeer geeft ie hem niet aan (wel applet.AppletContext) geimporteerd maar dan doet ie het niet en als ik hem dan run geeft ie een error dat ie de mehtode niet kan vinden.

dus wil ik hierbij vragen hoe het wel moet mat ik snap er geen ... van. }:O

  • mbravenboer
  • Registratie: Januari 2000
  • Laatst online: 06-11-2025
Hum.... ik geloof dat de slotjes, adviezen en opmerkingen niet echt overkomen he? Zulke zaken moet je toch echt zelf oplossen, dat is de enige manier om hier niet 20 vragen per dag te moeten stellen. Zo ingewikkeld is het toch niet? Verken gewoon eens de mogelijkheden en probeer het een en ander.

Blog, Stratego/XT: Program Transformation, SDF: Syntax Definition, Nix: Software Deployment


  • Janoz
  • Registratie: Oktober 2000
  • Laatst online: 28-08 12:00

Janoz

Moderator Devschuur®

!litemod

ShowDocument is niet een methode van applet, maar van appletContext. Het is niet genoeg om die maar te importeren, je moet hem ook opvragen voordat je wat met die class kunt doen. Ga nu in de API docs nog eens kijken hoe je van je Applet de AppletContext krijgt :)

Ken Thompson's famous line from V6 UNIX is equaly applicable to this post:
'You are not expected to understand this'


  • whoami
  • Registratie: December 2000
  • Nu online
Je hebt daar een hele hap tekst voor je die de werking/gebruik van die functie uitlegt, lees dat eens, probeer het een en ander uit.
GoT is geen helpdesk, en jij beschouwt het wel als een helpdesk.

Lees even de FAQ en de Quickstart (zie de sticky topics bovenaan).

https://fgheysels.github.io/


Dit topic is gesloten.