JDK-4664642 : JToolBar should have the ability to allow them to only DOCK on certain sides
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2002-04-08
  • Updated: 2004-08-31
  • Resolved: 2004-08-31
Related Reports
Duplicate :  
Description

Name: jk109818			Date: 04/08/2002


FULL PRODUCT VERSION :
1.4.0 release

FULL OPERATING SYSTEM VERSION :  Windows XP Pro


A DESCRIPTION OF THE PROBLEM :
If I have a JFrame with a BorderLayout, and I have a
statusbar in the south, another component in the east, and
I have my toolbar in the north.  I would like to be able
to set the toolbar when it is floatable to only allow it
to dock where I programmaticly say it can.  Like it could
only dock in the north and west.

Another solution is to just have the JToolBar be SMART
enough to know that something is already in that section
so it will not let it dock there.  This would be the
better solution, since there is no reason to let it do
this anyway since it seems to allways go behind the
component that is already there, and thus making imposible
sometimes to get the toolbar back.

This bug can be reproduced always.
(Review ID: 144852) 
======================================================================