ICEpdf
  1. ICEpdf
  2. PDF-20

Gtk library warning on Gnome/Ubuntu

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.1
    • Component/s: None
    • Labels:
      None
    • Environment:
      JDK 1.6, Linux UI using the GTK library.
    • Workaround Exists:
      Yes
    • Workaround Description:
      Hide
      1. start java with java --laf javax.swing.plaf.metal.MetalLookAndFeel property
      2. update ~/.icesoft/icepdf-viewer/pdfviewerri.properties and update the property "application.lookandfeel" to application.lookandfeel=Metal
      3. Edit the org.icepdf.ri.viewer.Launcher class method setupLookAndFeel(ResourceBundle messageBundle):void to set the look and feel as follows:
          UIManager.setLookAndFeel ( UIManager.getCrossPlatformLookAndFeel() );
      Show
      1. start java with java --laf javax.swing.plaf.metal.MetalLookAndFeel property 2. update ~/.icesoft/icepdf-viewer/pdfviewerri.properties and update the property "application.lookandfeel" to application.lookandfeel=Metal 3. Edit the org.icepdf.ri.viewer.Launcher class method setupLookAndFeel(ResourceBundle messageBundle):void to set the look and feel as follows:     UIManager.setLookAndFeel ( UIManager.getCrossPlatformLookAndFeel() );

      Description

      This appears to be a long standing issue with JDK6 and he GTK UI library for Linux. There is considerable information on the issue listed below:

      http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6624717
      http://www.nabble.com/Working-with-netbeans-6.0-in-Linux-GTK-problem-td15101577.html

      I still have to do a little more reading on this issue but the likely fix is change the viewer RI to load the cross platform look and feel.

        Activity

        Hide
        Patrick Corless added a comment -

        Looks like this issue has been fixed as of JDK6U12 . I'll close this issue but will also update the Workaround number 2. The assignment of a look andfeel in the pdfviewerri.properties should point to the look and feel name not the class path.

        Show
        Patrick Corless added a comment - Looks like this issue has been fixed as of JDK6U12 . I'll close this issue but will also update the Workaround number 2. The assignment of a look andfeel in the pdfviewerri.properties should point to the look and feel name not the class path.
        Hide
        Patrick Corless added a comment -

        Closing, several work aroundsexist and Sun has fixed this in resent version of JDK 1.6

        Show
        Patrick Corless added a comment - Closing, several work aroundsexist and Sun has fixed this in resent version of JDK 1.6

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Patrick Corless
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: