SWING's JToolbar separator orientation

75 Views Asked by At

I found a task which says that:

SWING does not contain component which implements separator (vertical or horizontal) depending on toolbar orientation. By inheriting JComponent, make component which has that implementation, and take into assumption that its parent should always be JToolbar component.

Would someone mind explaining to me how separator does not depend on toolbar orientation? I thought that by specifying in JToolbar constructor how should orientation be made, I already do that. (I'm using addSeparator() method from JToolbar class, not JSeparator)

0

There are 0 best solutions below