getParameter

2 respostas
rocha

Eu de novo…rsrsrs

Galera estou estudando um pouco sobre applet peguei um exemplo q não entendi pq está usando o getParameter será q alguém pode me esclarecer, segue uma parte do código

public void init(){

String in = getParameter(background);

back = Color.black;

if (in != null){

try	{

back = Color.decode(in);

}catch (NumberFormatException e) {

showStatus("Bad parameter " + in);

}

}

set Background(back);

pq se usa getParameter se a variavel in já é string?

Rocha

2 Respostas

rocha

Valeu eu entendi… é pq estou pegando um parametro de um pg html chamada background…

Desculpe a estupidez…rsrsrs :lol:

Rocha

N

Da uma olhada na API :slight_smile:
http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JApplet.html

Criado 16 de janeiro de 2004
Ultima resposta 16 de jan. de 2004
Respostas 2
Participantes 2