I am learning some GUI stuff on Java and I think Im missing something here. I have some components vertically listed using BoxLayout, such as some JButtons one above other. Now I want to separate them drawing a line between them. Do I have to use the Graphics library or is there some Swing way to separate the components with a line?
Going straight to the question: How to draw a line to separate components (such as JButtons) and which is the recommended way of doing it?
Thanks!