how to refresh jComboBox in popupMenuWillBecomeVisible



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.

.



Relevant Pages

  • Problem with firefox opening new windows
    ... I've got the latest firefox ... Occasionally, if I left click on a link, instead of FF opening the link ... in the current window, it will open a new window maybe 75% of the size ... I can generally refresh the page and the window goes away and open properly in the main window. ...
    (Fedora)
  • Re: Need Help with Multi Form handling
    ... and not open a new one, and refresh the contents of the existing form, ... so I can update the picture in the picturebox, instead of opening a new ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Confused about two windows
    ... sheldonlg wrote: ... opening the named, existing, window with window.open. ... Using window.open must have caused it to refresh after having been written to. ...
    (comp.lang.javascript)
  • Re: How to perform page refresh after HttpResponse.BinaryWrite
    ... consider opening the download in a ... new window, and refresh the current window. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Refresh Problem
    ... BROWSE window but I think you are on the right track. ... UPDATE message is received and I am not seeing what I expected. ... sure it got written before the receiving workstation tried to query it. ... What's your SET REFRESH setting? ...
    (microsoft.public.fox.programmer.exchange)