Re: [OT] how to specify dimensions a a Java Popup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Tue, 22 Jan 2013, John Doe wrote:

> From: Michael Hennebry <hennebry@xxxxxxxxxxxxxxxxxxxxx>
>
>> How, if at all, does one specify the size of a Java Popup?
>> setSize on the contents Component does not get the job done
>> regardless of when applied.

> Google says:
> http://www.java2s.com/Tutorial/Java/0240__Swing/CreatingPopUpComponents.htm

Thanks.  Google hadn't said it to me.
What I did get was buried in a bunch of stuff for javascript.

That said, the example did not explicitly control the size fo the popup.
I did notice that the example used a JButton instead of a JPanel.
Using a JButton, setSize worked as advertised.

-- 
Michael   hennebry@xxxxxxxxxxxxxxxxxxxxx
"On Monday, I'm gonna have to tell my kindergarten class,
whom I teach not to run with scissors,
that my fiance ran me through with a broadsword."  --  Lily
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux