user3663882 user3663882 - 7 months ago 25
Java Question

Is there a way to customize JLabel?

I'm new to Swing and working on Minesweeper application. I'm trying to layout the header field correctly and the issue is I don't reaaly understand what kind of font I should use for displaying the counts of mines and time:

enter image description here

How to customize JLabel this way or is there another possible solution? I would be appriciate any ideas...

Answer

Here's some Digital Clock Fonts that can be useful (the first one, Digital-7 +3, is the one in the picture):

enter image description here

To get the same result you need to modify the background color and the font color & size to requirement.

Comments