ryanqq / macwidgets

Automatically exported from code.google.com/p/macwidgets
0 stars 0 forks source link

iTunesTable does not honor enabled/disabled #86

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I created an iTunestable via MacWidgetFactory.createiTunesTable() and it does 
not seem to honor 
the enabled/disabled setting, because a column header is clickable, and even 
sorts (when 
applicable). When I create my JTable via 'new JTable()', the header is not 
clickable anymore. This 
leads me to believe the problem is iTunesTable related.

Original issue reported on code.google.com by Nephir...@gmail.com on 11 May 2009 at 2:53

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I fixed the part of the header that is clickable while it should not be by 
adding

if (!fTable.isEnabled())
{
   return;
}

In mouseClicked, mousePressed and mouseReleased. This disables the change of 
graphics of the header. 
However, it does still 'activate' the component so this seems a quick hacky 
workaround. This does not resolve 
my problem, since it still 'activates' the component. Compared to the normal 
JTable, this does not happen.

Original comment by Nephir...@gmail.com on 11 May 2009 at 2:56

GoogleCodeExporter commented 9 years ago

Original comment by kenneth....@gmail.com on 11 May 2009 at 3:03

GoogleCodeExporter commented 9 years ago
I've got a fix for this and will submit it shortly. Let me know if you want an 
updated jar with this change.

Original comment by kenneth....@gmail.com on 12 May 2009 at 11:27

GoogleCodeExporter commented 9 years ago
No, that's fine thank you. I'll build it off of svn.

Original comment by Nephir...@gmail.com on 18 May 2009 at 10:31

GoogleCodeExporter commented 9 years ago
OK...I'll let you know when it's checked in.

Original comment by kenneth....@gmail.com on 18 May 2009 at 10:43

GoogleCodeExporter commented 9 years ago
I've submitted the fix.

Original comment by kenneth....@gmail.com on 19 Jun 2009 at 11:40