Re: ComboBox width before setVisible??



"Paulo Filipe" <paulorcfilipe@xxxxxxxxx> writes:

HI

I'm using a comboBox and need to know his size before i set the frame
visible, i did more or less this code:
....
But i want to know his width before to resize a panel.
Anyone knows how can i do it??

Well, you probably don't want to do it this way. You should instead use
a layout manager that will handle this chore for you. It will save you
much aggravation in the long run.

Perhaps either GridBagLayout of the excellent JGoodies Forms will do
what you want.

--
Thomas A. Russ, USC/Information Sciences Institute
.



Relevant Pages

  • Re: get HTML Title from JEditorPane
    ... I just tried it using Java1.4.2 on Sparc Solaris and it just ... Once the frame is created and shown, ... Thomas A. Russ, USC/Information Sciences Institute ...
    (comp.lang.java.gui)
  • Re: Default VK_Enter action in JText* component
    ... Thomas A. Russ, USC/Information Sciences Institute ... //Basic contents of the frame. ... JTextPane inputArea; ...
    (comp.lang.java.gui)
  • Re: Combobox height
    ... form not the frame. ... wrong scale mode and for everything to go haywire. ... Public Sub SetComboHeight(ByVal Combo As ComboBox, ... L = ScaleX(Combo.Left, Combo.Parent.ScaleMode, vbPixels) ...
    (microsoft.public.vb.general.discussion)
  • Re: api - tracking LostFocus or Exit event of a combobox
    ... I don't have access to the Combobox directly from the Userform; ... window 's class using Spy+, it seems like the combobox doesn't have a window ... assicioted with it (unlike the listbox or a frame). ...
    (microsoft.public.excel.programming)
  • UserForm ComboBox RowSource Problem
    ... On Frame 2 is a ComboBox. ... I am loading this ComboBox with one of 31 named ranges. ... I have a zipped sample which uses only two days not 31. ... TextBoxes changing as they should. ...
    (microsoft.public.excel.programming)