Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

getting size of JPanel inside a BorderLayout

807597Feb 25 2005 — edited Feb 25 2005
Hello
I have a JFrame set as BorderLayout. In the WEST I'm planning to put buttons etc, and in the CENTER I have put a JPanel which I want to draw coordinate axes. This panel is another class PlotPanel. I wonder if it is possible to get the size this PlotPanel will occupy in my JFrame, so that I can orient axis properly. Either from my PlotPanel class directly, or by finding it in my JFrame class, and passing them along to the constructor of PlotPanel.

Regards
JT
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 25 2005
Added on Feb 25 2005
7 comments
890 views