how to refresh jComboBox in popupMenuWillBecomeVisible
- From: "Trufel" <trufflecider@xxxxxxxxx>
- Date: 29 Aug 2006 03:54:54 -0700
hello,
i have jComboBox which should calculate its drop-down list size before
opening (it depends on current window size so I decide to put it into
popupMenuWillBecomeVisible method)
void jComboParamNames_popupMenuWillBecomeVisible(PopupMenuEvent e) {
int rowCount = 30; // sample for testing purposes...
myCombo.setMaximumRowCount(rowCount);
// how to refresh combo???
}
Desired size of drop down list will appear... after second click on the
comboBox. Is it possible to refresh it in popupMenuWillBecomeVisible
before showing drop-down list?
thanks
T.
.
- Follow-Ups:
- Prev by Date: Help Menu - opens frame which does not go to front
- Next by Date: Re: Help Menu - opens frame which does not go to front
- Previous by thread: Help Menu - opens frame which does not go to front
- Next by thread: Re: how to refresh jComboBox in popupMenuWillBecomeVisible
- Index(es):
Relevant Pages
|