|
From: Slava P. <sl...@je...> - 2005-04-23 20:36:20
|
Hi, Its better to hide columns by modifying the VFSDirectoryEntryTableModel class. Could you do that instead? David Chan wrote: > Hi, > > Here is a patch that allows you to hide and unhide any > extended attribute columns in the VFSBrowser via a > pop-up menu on the column header. > > There are a few caveats. > > 1) This solution relies on TableColumn.setMinWidth() > to make the column disappear. I think an ideal > solution might use a custom TableColumnModel that kept > track of the model's column indices and did a proper > mapping between the columns displayed and those in the > model. > > 2) To quickly do this, I had to make > VFSDirectoryEntryTable.resizeColumns() public. > > 3) I made the patch against the current CVS > repository. > > Please give it a try. Once patched and compiled, try > right clicking on the 'File System Browser' column > header. > > Dave > > > > > __________________________________ > Do you Yahoo!? > Read only the mail you want - Yahoo! Mail SpamGuard. > http://promotions.yahoo.com/new_mail |