Get JToolBar position in BorderLayout
843806Aug 24 2009 — edited Aug 25 2009Greetings:
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