google-code-export / macwidgets

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

ITunesTableUI selection should span width of viewport #106

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. install an ITunesTableUI on a JTable
2. click on a row of the table

What is the expected output? What do you see instead?

If it is truly intended to emulate the iTunes UI, the selection should span all 
the way to the right 
edge of the viewport, not just to the last meaningful column.

What version of the product are you using? On what operating system?

MW 0.95, Mac OS X 10.5.7

Please provide any additional information below.

This is one of a number of instances of Apple software being inconsistent. In 
Finder windows in 
list view, the selection stops at the last column of data, with just the 
background striping 
extending to the right edge; but in iTunes, the selection is painted all the 
way to the edge.

Original issue reported on code.google.com by j.r.h...@gmail.com on 7 Jul 2009 at 3:03

GoogleCodeExporter commented 9 years ago
You're definitely right. I'll look into where the best place to put this fix is.

Original comment by kenneth....@gmail.com on 10 Jul 2009 at 10:41

GoogleCodeExporter commented 9 years ago
I fixed this inside StrippedViewportBorder. The getRowColor() method now checks 
whether the row is selected. If yes, then it returns 
JTable.getSelectionBackground(). Additionally the border now listens to 
selection events fired from the table, so that the selection triggers a repaint 
of the entire viewport.

Original comment by dlemmermann@gmail.com on 27 Aug 2010 at 1:50

GoogleCodeExporter commented 9 years ago

Original comment by kenneth....@gmail.com on 27 Aug 2010 at 2:38