“O centro justifica Jlabel” Respostas de código

O centro justifica Jlabel

import javax.swing.SwingConstants;
import javax.swing.JLabel;

Jlabel label1 = new Jlabel("Test");
label1.setHorizontalAlignment(SwingConstants.CENTER);
//Can also use SwingConstants.LEFT & .RIGHT
tjwild0127

O centro justifica Jlabel


JLabel(String text, int horizontalAlignment) 

Magnificent Mantis

Respostas semelhantes a “O centro justifica Jlabel”

Perguntas semelhantes a “O centro justifica Jlabel”

Procure respostas de código populares por idioma

Procurar outros idiomas de código