Hi, everyone i have a problem in displaying Jlabels and Icons in a single JPanel. I have used Gridlayout and tried to display the Icons and JLabels in the JPanel. But using GridLayout the JLabels and Icons get dispersed and not in proper order and also the icon get crop, it does not display properly.
Again i tried GridBagLayout and in that, the space between the Jlabels are not proper. Some have gaps between them and some does not have much gap, means it does not look very nice.
I need to display 5 JLabels in left side and 2 Icons on right side of JPanel and the space between the JLabel must all be same and also the Icons must not be croped. I have used two JPanels in top of the main JPanel for the JLabels and the Icons and it can be displayed properly. But without using two more JPanels, whether there is any other option?
So can you give me some suggestion regarding this....
Thanks in advance.