I am learning some GUI stuff in Java and I think Im missing something here. I have some components vertically listed using BoxLayout, for example, some JButtons that are higher than others. Now I want to separate them from the line between them. Should I use the Graphics library or is there some Swing way to split the components into a string?
Turning directly to the question: how to draw a line for separating components (for example, JButtons) and which is the recommended way to do it?
Thanks!
source share