setting the font
*
* and adding these labels to the panel.
*
* finally adding the panel to the container
*
*******************************************
****************************/
for (int i = 0; i < informationLabel.length;
i++) {
informationLabelPanel.add(informationLabel[i] =
new JLabel(informationString[i]));
informationLabel[i].setFont(new
Font("Tahoma", Font.BOLD, 11));
}
centerPanel.add("West",
informationLabelPanel);
//for setting the layout
informationTextFieldPanel.setLayout(new
GridLayout(11, 1, 1, 1));
/******************************************
Do'stlaringiz bilan baham: |