Fonte do JLabel
Olá pessoal,
Gostaria de saber como se faz p aumentar a fonte de um JLabel.
Aguardo a ajuda de vcs!
Danielle
Curtidas 0
Respostas
Luiz Pereira
09/04/2009
Use o método setFont()
[url]http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JLabel.html[/url]
flw
GOSTEI 0
Paulo Reis
09/04/2009
label.setFont( [b]new Font( "Serif", Font.BOLD + Font.ITALIC + 20 )[/b] );
>>tipo isso aí :!:
GOSTEI 0
Danielle
09/04/2009
Tentei colocar assim:
jlTela.setFont(new Font("Courier", Font.BOLD + Font.ITALIC + 20));
mas, deu erro. Com certeza esta errado, sou "meio" destreinada em java, será q vc poderia m falar pq ñ deu certo?
symbol : constructor Font (java.lang.String,int)
location: class java.awt.Font
jlTela.setFont(new Font("Courier", Font.BOLD + Font.ITALIC + 20));
^
1 error
Process completed.
Obrigada!
GOSTEI 0
Rafael Correa
09/04/2009
jlTela.setFont(new Font("Courier", Font.BOLD + Font.ITALIC, 20));
tenti assim...
ok, deu certo
GOSTEI 0