swingx
  1. swingx
  2. SWINGX-1297

GTK: NPE when setting border of non-label renderer components (core bug)

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.1
    • Fix Version/s: 1.6.3
    • Component/s: Renderer
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      1,297

      Description

      reported in

      http://forums.java.net/jive/thread.jspa?threadID=77690

      the core issue is that the GTKPainter$ListTableFocusBorder is a broken implementation
      (returns null for insets of non-label components)

      SwingX can/should work around with a custom wrapping border (as suggested in the thread)
      until core is fixed.

        Activity

        Hide
        kleopatra added a comment -

        cc'ed to reporter of the duplicate (not sure if the tracker handles that notification
        automatically)

        Show
        kleopatra added a comment - cc'ed to reporter of the duplicate (not sure if the tracker handles that notification automatically)
        Hide
        kleopatra added a comment -

        closing (want my desk clear <g>) Simply reopen if there still are problems

        Jeanette

        Show
        kleopatra added a comment - closing (want my desk clear <g>) Simply reopen if there still are problems Jeanette
        Hide
        kleopatra added a comment -

        Karl,

        I decided against the hammer Don't want to save the world, just make SwingX renderers
        safe enough. Client code accessing the GTK installed unsafe borders before a Table/List
        is instantiated are on their own. The core issue looks fixed as of 7-b102 which fixed
        the base issue (which is a crappy AbstractBorder implementation)

        • added SafeBorder to package plaf, deprecated the existing in package linux
        • added border replacing code in TableAddon, ListAddon if GTK is detected
        • added tests

        @OP, could you please check if this really solves the problem? We are blind on the Linux
        eye

        committed as of revision #3879 (Hudson's down - so checkout from svn is the only option
        to get the latest code, sigh...)

        Thanks
        Jeanette

        Show
        kleopatra added a comment - Karl, I decided against the hammer Don't want to save the world, just make SwingX renderers safe enough. Client code accessing the GTK installed unsafe borders before a Table/List is instantiated are on their own. The core issue looks fixed as of 7-b102 which fixed the base issue (which is a crappy AbstractBorder implementation) added SafeBorder to package plaf, deprecated the existing in package linux added border replacing code in TableAddon, ListAddon if GTK is detected added tests @OP, could you please check if this really solves the problem? We are blind on the Linux eye committed as of revision #3879 (Hudson's down - so checkout from svn is the only option to get the latest code, sigh...) Thanks Jeanette
        Hide
        kleopatra added a comment -

        taking

        Show
        kleopatra added a comment - taking
        Hide
        kleopatra added a comment -
        Show
        kleopatra added a comment - core issue is: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6739738 a maybe related and maybe fixed one: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6963870

          People

          • Assignee:
            kleopatra
            Reporter:
            kleopatra
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: