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 <[EMAIL PROTECTED]>: > Hi, > > How can I get the Dimension of a jPanel which is dynamically created > > merci for your help > > claude > > =========================================================================== > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > of the message "signoff JAVA2D-INTEREST". For general help, send email to > [EMAIL PROTECTED] and include in the body of the message "help". > =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
