Skip to Main Content

Java SE (Java Platform, Standard Edition)

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!

Get JToolBar position in BorderLayout

843806Aug 24 2009 — edited Aug 25 2009
Greetings:

I've a JToolBar put in a JPanel with BorderLayout. I would like to capture where the user last left the JToolBar, based in the 4 possible corners (+borders+); I've tried BorderLayout.getLayoutComponent (Container target, Object constraints) with not much luck (it always throws me an exception, not matter if I do it before or after the JtoolBar instantiation).

Do anyone knows what can I do besides getting the raw x,y position? (or the propper use of BorderLayout.getLayoutComponent)

Thanks a lot in advanced
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 22 2009
Added on Aug 24 2009
9 comments
439 views