swingx
  1. swingx
  2. SWINGX-1542

JXDatePicker did not show traverse buttons

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Works as designed
    • Affects Version/s: 1.6.4
    • Fix Version/s: None
    • Component/s: Calendar
    • Labels:
      None
    • Environment:

      Windows XP SP3, Nimbus, Java 1.6-1.7

      Description

      If I put a simple JXDatePicker, with no special setup on a JPanel and press the button -> show the date picker
      I get the current Monthview without the traverse buttons. When I click on the location I suggest the buttons should be,
      I get the following error :

      Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
      at org.jdesktop.swingx.plaf.basic.BasicMonthViewUI.getTraversableGridPositionAtLocation(BasicMonthViewUI.java:881)
      at org.jdesktop.swingx.plaf.basic.BasicMonthViewUI$Handler.mousePressed(BasicMonthViewUI.java:1700)
      at java.awt.Component.processMouseEvent(Component.java:6502)

      PS: The date picker was added in the netbeans matisse gui editor, previously added to their palette using the beans-classes.

        Activity

        Hide
        kleopatra added a comment -

        a bit weird - nothing changed in the current release. And can't reproduce: compiling and running the swinglabs-demos against the swingx-all-1.6.5.jar downloaded from maven.java.net and both jdk6/7 (not the latest but recent builds)

        Can you check if it also happens when you don't use the builder? Might be something in the beaninfo (far shot, though, and can't really know as I never use it

        Show
        kleopatra added a comment - a bit weird - nothing changed in the current release. And can't reproduce: compiling and running the swinglabs-demos against the swingx-all-1.6.5.jar downloaded from maven.java.net and both jdk6/7 (not the latest but recent builds) Can you check if it also happens when you don't use the builder? Might be something in the beaninfo (far shot, though, and can't really know as I never use it
        Hide
        Spinnifex added a comment -

        Hi kleopatra,
        I test it without the builder -> same result.
        Maybe I Can upload a screenshot but how?
        I use the swingx-all-1.6.4.jar file.
        This is the creation code :
        JXDatePicker datePicker = new JXDatePicker();
        I look into the sources and see, that there is an icon used.
        Maybe the same strange error like the error-pane-error where I
        only see the buttons without any labels...

        Show
        Spinnifex added a comment - Hi kleopatra, I test it without the builder -> same result. Maybe I Can upload a screenshot but how? I use the swingx-all-1.6.4.jar file. This is the creation code : JXDatePicker datePicker = new JXDatePicker(); I look into the sources and see, that there is an icon used. Maybe the same strange error like the error-pane-error where I only see the buttons without any labels...
        Hide
        kleopatra added a comment - - edited

        can you check if the icons are in the jar? Faintly remember we had some resource-related problems prior to the last (1.6.4) release, which had been fixed before finalizing it though. Maybe you accidentally have that pre-release jar somewhere in the classpath?

        The icons should be in xx.plaf.basic.resources, named month-up.png and month-down.png

        Show
        kleopatra added a comment - - edited can you check if the icons are in the jar? Faintly remember we had some resource-related problems prior to the last (1.6.4) release, which had been fixed before finalizing it though. Maybe you accidentally have that pre-release jar somewhere in the classpath? The icons should be in xx.plaf.basic.resources, named month-up.png and month-down.png
        Hide
        Spinnifex added a comment -

        Re, I checked the jar and I found no resources ...
        Not one png or something else ... only *.class files...

        Show
        Spinnifex added a comment - Re, I checked the jar and I found no resources ... Not one png or something else ... only *.class files...
        Hide
        kleopatra added a comment - - edited

        okay, so you have to change your swingx-all-1.6.4.jar to one containing the resources

        just checked: the maven release artefact does contain the resources, as does the copy at swingx.java.net downloads

        ahh .. you already did, just found your comment in 1513:

        "Ah - Problem solved !
        You pointed me to the solution -> I downloaded the actual found 1.6.4-jars and now the error pane works, the date picker too."

        Glad we could resolve this so quickly.

        Cheers

        Show
        kleopatra added a comment - - edited okay, so you have to change your swingx-all-1.6.4.jar to one containing the resources just checked: the maven release artefact does contain the resources, as does the copy at swingx.java.net downloads ahh .. you already did, just found your comment in 1513: "Ah - Problem solved ! You pointed me to the solution -> I downloaded the actual found 1.6.4-jars and now the error pane works, the date picker too." Glad we could resolve this so quickly. Cheers

          People

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

            Dates

            • Created:
              Updated:
              Resolved: