java - Column headers in a boxlayout -
i using boxlayout manager fit other jpanels horizontally. on each 1 of panels contained inside of boxlayout, box layout lays out jbuttons vertically. here visual image.
i able add borders between each set of buttons, add top button says each value in column is. borders don't seem hard, not sure if possible add column header current layout manager have.
do need switch layout managers, or there way add column headers each panel? glue seems idea, not sure how position header @ top, while still centering other buttons.
do need switch layout managers, or there way add column headers each panel? glue seems idea, not sure how position header @ top, while still centering other buttons.
wrap jpanel
around each of columns borderlayout
, put header in borderlayout.north
. original column panel can put in borderlayout.center
.
there no need stick 1 layout. typically easier nest different layouts obtain result
Comments
Post a Comment