I am working with FlowLayout Manager
in my JPanel. I have many Label and TextField/JComboBox combinations. like
When JPanel is resized
I have set FlowLayout on my JPanel and whenever the panel is resized then instead of taking components one by one to next row, I want it to take my Label+Textfield together to next row.
Is it possible to make of group or something like that so my each Label+Textfield are considered as single component and when the panel is resized both of these Components come down together.
One way I know is that put my every label+textfield in every seperate JPanel and then putting these JPanels in my main FlowLayout JPanel but then I will have to do alot of work therefore wanted to know if there is some option in java for this?