Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Using a JLabel for the right header or footer with right justified text, text runs over the right edge. Why?

footer header jlabel right text
0
Posted

Using a JLabel for the right header or footer with right justified text, text runs over the right edge. Why?

0

This was a Java bug (see “Known Problems”), since fixed in JDK 1.5. It primarily occurred for small, size=-3, text and for SansSerif (= Arial = Helvetica) font. Workarounds for earlier JDK’s include: 1) use bigger font size, 2) use Serif font, or 3) if you need a sans serif font, try alternatives such as Lucida Sans.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123