Hi there!
I study the swing, and I faced a problem I've been sitting for days thinking about.
I wish to do the following:
a frame consisting of "three main columns"
The left column will have four images (clickable JLabels) one under another, and so on (with some intervals).
The middle column, I have only ONE JButton, placed in the middle.
Column in the right, I have a number of clickable JLabel's
listed as a table, but the JLabel's.
where each column corresponds to an object stored data (saved by clicking on it)
(like a Jtabel, but I wish to use JLabel instead)
when I click respectively. Label, I wish that the JLabel either get a boarder or change color.
I understand that if I put a boarder, I will change the size of this and potentially sabotage the table layout, Janska quickly if I make a mistake,
How would you solve this?
it feels like you
first has a
"master JPanel" having a Flow Layout (3 colum) (align? left to right)
then
"Left Column JPanel" having a Flow layout (colum 4) (align? top to button).
then
"middle column JPanel" having a Flow Layout (3 colum) (align? top to button).
then
"Right column JPanel" having a Flow layout (XNO colum) (align? Left to right).
and in this "Right column JPanel":
a "data JPanel" one for each object that has a Flow Layout (1 colum) (align? top to button).
but my concern is that they do not line up as a tabäll when values are changed, or when one is selected, :-(