How to center the text in a JLabel?
The following constructor, JLabel(String, int), allow you to specify the horizontal alignment of the label. JLabel label = new JLabel(“The Label”, SwingConstants.CENTER);
The following constructor, JLabel(String, int), allow you to specify the horizontal alignment of the label. JLabel label = new JLabel(“The Label”, SwingConstants.CENTER);
I found this helped where my words were breaking part way through the word in a WooThemes Testimonial plugin. .testimonials-text { white-space: normal; } play with it here http://nortronics.com.au/recomendations/ <blockquote class=”testimonials-text” itemprop=”reviewBody”> <a href=”http://www.jacobs.com/” class=”avatar-link”> <img width=”100″ height=”100″ src=”http://nortronics.com.au/wp-content/uploads/2015/11/SKM-100×100.jpg” class=”avatar wp-post-image” alt=”SKM Sinclair Knight Merz”> </a> <p>Tim continues to provide high-level technical applications advice and … Read more