The Source for Java Technology Collaboration

Home » java.net Forums » Java Desktop Technologies » SwingLabs

Thread: SwingX 0.9.6 Release - Bug in Calendar Control ?

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
This question is answered.

Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 8 - Last Post: Mar 30, 2009 2:45 PM by: martinm1000 Threads: [ Previous | Next ]
martinm1000

Posts: 51
SwingX 0.9.6 Release - Bug in Calendar Control ?
Posted: Mar 29, 2009 6:52 PM
 
  Click to reply to this thread Reply

Hi,

I'm testing my code against that new release, and I think this bug is not my fault !

Can't click on next/preview month in the MonthView :

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


Which might imply :

Rectangle hitArea = new Rectangle(headerBounds.x, headerBounds.y, monthUpImage.getIconWidth(), monthUpImage.getIconHeight());


Can anyone confirm ? Can you fix it fast if its you ? ;-)

Thanks.

kleopatra

Posts: 1,677
Re: SwingX 0.9.6 Release - Bug in Calendar Control ?
Posted: Mar 30, 2009 2:08 AM   in response to: martinm1000
Correct
  Click to reply to this thread Reply

doooohhh .... that was me: c&p is _always_ the wrong thing to do, even more so if it is an accidental x&p :-((

fixed but ... do we really have a release already? nothing tagged? and Hudson hanging again...

Anyway, embarassed
Jeanette

rah003

Posts: 894
Re: SwingX 0.9.6 Release - Bug in Calendar Control ?
Posted: Mar 30, 2009 5:50 AM   in response to: kleopatra
 
  Click to reply to this thread Reply

Yes, we do have a release ... forgot to post it here (finished bit late with it (around 1 am)).
Build is tagged (SwingX-0-9-6) and the announcement is as usually at http://weblogs.java.net/blog/rah003/archive/2009/03/swingx_096_rele.html
also equivalent weekly build is marked in hudson as release 0.9.6 http://swinglabs.java.sun.com/hudson/job/SwingX%20Weekly%20Build/137 and there is version 0.9.6 in issue tracker and fixed 0.9.x issues have been updated to 0.9.6 ... did I forget anything?

... yes i did ... hudson is not hanging :)

kleopatra

Posts: 1,677
Re: SwingX 0.9.6 Release - Bug in Calendar Control ?
Posted: Mar 30, 2009 6:20 AM   in response to: rah003
 
  Click to reply to this thread Reply

no, you didn't forget anything - it's just a typical Monday for me, my brain refusing to work (forgot to synch with repository to see the tag - arrrgghhh ;-)

Now what can we do about this major issue with the navigation icons in the monthView? Any way to patch the release? Silently replace the BasicMonthViewUI with the fixed version?

Thanks
Jeanette

rah003

Posts: 894
Re: SwingX 0.9.6 Release - Bug in Calendar Control ?
Posted: Mar 30, 2009 8:10 AM   in response to: kleopatra
 
  Click to reply to this thread Reply

> Now what can we do about this major issue with the navigation icons in the monthView? Any way to patch
> the release? Silently replace the BasicMonthViewUI with the fixed version?

I would not do that, to make it right we would have to re-tag this one source file, update src and bin bundles to include correct version, upload them again, change the links on the site to new version and I'm sure I would forget to change something somewhere.
It would be easier just to release 0.9.7 ... let's wait until the end of the week in case some other regression pops up and I'll do another release over the weekend.

kleopatra

Posts: 1,677
Re: SwingX 0.9.6 Release - Bug in Calendar Control ?
Posted: Mar 30, 2009 8:25 AM   in response to: rah003
 
  Click to reply to this thread Reply

sounds good!

Sorry for the mess, owe you some drinks in Antwerp this year :-)

CU
Jeanette

martinm1000

Posts: 51
Re: SwingX 0.9.6 Release - Bug in Calendar Control ?
Posted: Mar 30, 2009 8:37 AM   in response to: kleopatra
 
  Click to reply to this thread Reply

Thanks, I'll wait for 0.9.7 soon.

You'll get to 1.0 faster that way ;-)

rah003

Posts: 894
Re: SwingX 0.9.6 Release - Bug in Calendar Control ?
Posted: Mar 30, 2009 12:40 PM   in response to: martinm1000
 
  Click to reply to this thread Reply

> Thanks, I'll wait for 0.9.7 soon.
>
> You'll get to 1.0 faster that way ;-)

i wish that was true. Would appreciate if you can take the latest build from hudson and test it ... and possibly find more issues (or confirm there are none) ... also if you got some time on your hands and feel like taking over some existing issues ... I'd be happy to include any patches we get ... that's what is really geting us closer to 1.0

martinm1000

Posts: 51
Re: SwingX 0.9.6 Release - Bug in Calendar Control ?
Posted: Mar 30, 2009 2:45 PM   in response to: rah003
 
  Click to reply to this thread Reply

I'll try to test a build this week, but I don't have the time ;-(

Still, I don't do much in my project with the calendar control,
but it still looked like I customized it; didn't have to change
anything ( I expected to with the latest changes, but it looks good).

you can see here:

http://img148.imageshack.us/img148/2663/calendaru.jpg
One date is selected, but the Period of the date is shown.

Simple use in a treetable : http://img11.imageshack.us/img11/3336/cal2y.jpg




 XML java.net RSS