Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: using a JComboBox as a cell renderer in a JXTreeTable




Le 13 août 05 à 23:20, Brendon McLean a écrit :

Au contraire, you can override getCellEditor(int row, int column) in JTable. Also, your TableCellEditor interface also provides row and column information.

For example:

public class ComboBoxEditor extends TableCellEditor {
Component getTableCellEditorComponent(JTable table, Object value,
boolean isSelected,
int row, int column) {


                return new JComboBox(getArray(row));
       }
}


OK, thanks a lot, then the best solution for me is to have a not edotable editor )))


In the mean time i've tried a solution using a tooltip in html...

best,

Yvon


_______________________________________________ Do not post admin requests to the list. They will be ignored. Java-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden
References: 
 >using a JComboBox as a cell renderer in a JXTreeTable (From: Yvon Thoraval <email@hidden>)
 >Re: using a JComboBox as a cell renderer in a JXTreeTable (From: Brendon McLean <email@hidden>)
 >Re: using a JComboBox as a cell renderer in a JXTreeTable (From: Yvon Thoraval <email@hidden>)
 >Re: using a JComboBox as a cell renderer in a JXTreeTable (From: Brendon McLean <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.