Hi, Marek,

as your test uses Swing menus, it looks like a Swing (or probably Java2D, because of font metrics) problem, rather than AWT one.

Thanks,

Artem

Marek Slama wrote:
Hello,

we encounter problem with too big spacing around text in Swing components in openjdk. I attach 2 snapshots of MenuLookDemo on openjdk and Sun JDK 6u10 on Ubuntu 8.10/Metal L&F. I was pointed to this maling list. Is it known problem? I do not know if it is specific to Ubuntu only.

java version "1.6.0_10"
Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
Java HotSpot(TM) Client VM (build 11.0-b15, mixed mode, sharing)

java version "1.6.0_0"
IcedTea6 1.3.1 (6b12-0ubuntu6) Runtime Environment (build 1.6.0_0-b12)
OpenJDK Client VM (build 1.6.0_0-b12, mixed mode, sharing)

Both use the same font:
javax.swing.plaf.FontUIResource[family=Dialog,name=Dialog,style=bold,size=12]

Original issue report is https://bugs.launchpad.net/bugs/289784

Thanks

Marek

Reply via email to