Re: Re: Re: Re: Re: The width of the JComboBox drop-down list
Originally posted by nonick
Ok! But how do i get JPopupMenu for this combobox, from the PopupMenuevent?
The 'event.getSource()' method will return the Object that caused the event (in this case the JPopupMenu). Cast the return value to JPopupMenu and there you have it.
Many casts will be a things of the past - in Java 1.5...
Please use [CODE]...your code here...[/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.