Prezados eu não posso utilizar \t dentro, de um JLabel?
Ex.: JLabel l1 = new JLabel("a"+"\t"+"b"+"\t"+"c");
Agradeço
Trajano
Prezados eu não posso utilizar \t dentro, de um JLabel?
Ex.: JLabel l1 = new JLabel("a"+"\t"+"b"+"\t"+"c");
Agradeço
Trajano
Só para completar, a pergunta:
String x=("a"+"\t"+"b");
JLabel l1 = new JLabel(x);
System.out.println(x);
Via System.out.println ok,
Já dentro do JLabel, não funciona.
Creio que não funcione mesmo!!
Mas tenta usar html!
Assim:
String aux = "<html><body>
a<br>
b
</body></html>"
JLabel label = new JLabel(aux);
T+!!