devxlogo

Creating Multi-Line Labels in AWT/Swing

Creating Multi-Line Labels in AWT/Swing

 String htmlLabel = "HTMLLabel
" + "Multi-line" + "
Extra-line";JLabel label = new JLabel(htmlLabel);

devx-admin

Share the Post: