oh, yes.  getTable().getTableHeader().repaint() is enough, thx.
are there actual news about this problem?
greetings
marco




                                                                 
             "Etienne                                            
             Studer"                                             
             <[EMAIL PROTECTED]                                    An 
             s.com>                 <[EMAIL PROTECTED]>,  
                                    <[EMAIL PROTECTED]>    
             07.06.2006                                    Kopie 
             19:33                                               
                                                           Thema 
                                    RE: [ULC-developer]          
                                    sortedTableModel, PR612,     
                                    column Header Refresh        
                                                                 
                                                                 
                                                                 
                                                                 
                                                                 
                                                                 




Hi Marco

I never updated the Community contribution with respect to the
table
header rendering, but calling
getTable().getTableHeader().repaint()
after setting a new header renderer is a proper workaround (no
need to
repaint the entire frame).

I'm not sure if this got fixed in ULC, and if so, in which
version. Btw,
this problem is not related to what type of table model you are
using.

I'd be interested, too, whether repainting the header after
setting a
new header renderer is still necessary in the latest ULC release.

Etienne


> -----Original Message-----
> From: [EMAIL PROTECTED]
[mailto:ulc-developer-
> [EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
> Sent: Wednesday, June 07, 2006 2:11 AM
> To: [EMAIL PROTECTED]
> Subject: [ULC-developer] sortedTableModel, PR612, column Header
Refresh
>
>
> Hi all,
> i have tested etienne's SortedTableModel  from the code
> community.
> During testing this model i "think" i found a bug which already
> has been reported and should have been solved.
>
> I have created a class extending UneditableDefaultTableModel
and
> have implemented all necessary methods inside (getvalueAt,
> getRowCount...).
>
> After that i have adapted the UneditableDefaultTableModel to
the
> SortedTableModel :
>
>       private MagazineModelUneditable
> getMagazineModelUneditable() {
>             if (magazineModelUneditable == null) {
>                   magazineModelUneditable = new
> MagazineModelUneditable();
>             }
>             return magazineModelUneditable;
>       }
>
>       private SortedTableModel getSortedTableModel() {
>             if (sortedTableModel == null) {
>                   sortedTableModel = new
> SortedTableModel(getMagazineModelUneditable());
>
>                   ULCListSelectionModel selectionModel =
> ulcTable.getSelectionModel();
>
ulcTable.getTableHeader().addActionListener(new
> SortTableColumnHandler(sortedTableModel, selectionModel));
>             }
>             return sortedTableModel;
>       }
>
> Now i have set the SortedTableModel as model for my table:
>       ulcTable.setModel(getSortedTableModel());
>
> If i run now my application, the headericons will not be
> repainted.
> If i use the workaround:
>
>
http://lists.canoo.com/mailman/private/ulc-developer/2005/002922.html

> it works!!
>
> Does anybody know why?? Is this still a bug or have i made an
> error including the sorted-table-model?
>
> thx a lot
> marco
>
>
>
>
>
>
>
>
>
>
> _______________________________________________
> ULC-developer mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/ulc-developer




_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer

Reply via email to