Skip to main content

[JAVA2D] java.awt.Dimension

1 reply [Last post]
Anonymous

Hi,

How can I get the Dimension of a jPanel which is dynamically created

merci for your help

claude

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
David Kavanagh

If the panel has been made visible, simply call panel.getSize(). If it hasn't
been made visible, you should call panel.getPreferredSize(), but note that
based on the container it resides in and the layout manager that container
uses, that dimension may not be the real size that it will have once made
visible.

David

Quoting Claude Stéphan :

> Hi,
>
> How can I get the Dimension of a jPanel which is dynamically created
>
> merci for your help
>
> claude
>
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the body
> of the message "signoff JAVA2D-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".
>

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".