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

    Details

    • Subcomponent:
      2d
    • Resolved In Build:
      b77
    • CPU:
      x86
    • OS:
      linux, linux_redhat_3.0

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: