|
Java™ by example!
|
|
|
How do I create a JLabel with the text on top of the image?
You can play around with the methods setHorizontalTextAlignment and setVerticalTextAlignment as shown in the following example: Main.java:
Further Information
Author of answer: Joris Van den Bogaert
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|