Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6378474

GTK L&F: Menu font and spacing do not match native UI using Ubuntu

XMLWordPrintable

    • 2d
    • b77
    • x86
    • linux, linux_redhat_3.0

      FULL PRODUCT VERSION :
      java version "1.6.0-rc"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-rc-b68)


      ADDITIONAL OS VERSION INFORMATION :
      Linux elite 2.6.12-10-686 #1 Mon Jan 16 17:58:04 UTC 2006 i686 GNU/Linux


      EXTRA RELEVANT SYSTEM CONFIGURATION :
      I'm running Ubuntu 5.10 (breezy) with the gnome desktop. Furhter, I'm using the standard theme called 'Human', which ships with this distribution.

      A DESCRIPTION OF THE PROBLEM :
      The Menu font and spacing do not match native UI using the GTK L&F. It would be great if the menu wouldn't be distinguishable from the other gnome applications, if the standard font (Dialog Bold 12?) is used in Java. (I use no setFont call at all!).

      The see the difference, I've made two screenshots, both showing a selfmade JSwing Application and the Rhythmbox Music Player (native Gnome App).

      Btw using the famous 'Clearlooks' there is also a little difference, but in contrast to that one, the spacing seems to be a bit smaller, but almost not noticable.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Either write the code for showing a JMenu by hand or use an GUI Editor like the one from Netbeans.

      Start a native GTK2 application and compare both with the 'Human' theme.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The two menu bars should have the same font and spacing.
      ACTUAL -
      The font and spacing in the JMenu is much bigger than in the native GTK app.

      REPRODUCIBILITY :
      This bug can be reproduced always.

            prr Philip Race
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: