Recent posts by daniel xiao

I need to display one JLabel text to display in two rows/lines. I should not create two JLabels for two lines. I use this method can relization,but it's not best,Who have a good idear??: label.setText("<html>test line1<br>test line2</html>");