}
@SuppressWarnings("unchecked")
protected void etiketSelected() {
fieldList = new ArrayList<CTextField>();
UrunStok urunOlustur = new UrunStok();
if (urun != null) {
urunOlustur = urun;
}
JPanelIcerik.removeAll();
etiket = (Etiket) cComboBoxEtiketSecim.getSelectedItem();
labelList = (List<EtiketLabel>) HibernateManager.getInstance()
.getEntitysList(etiket, "labelList");
int k = 0;
for (int i = 0; i < labelList.size(); i++) {
JLabel label = new JLabel();
label.setText(labelList.get(i).getName());
GridBagConstraints gbc_label = new GridBagConstraints();
gbc_label.insets = new Insets(0, 0, 5, 0);
gbc_label.anchor = GridBagConstraints.WEST;
gbc_label.gridx = 0;
gbc_label.gridy = k;
CTextField field = new CTextField(30);
GridBagConstraints gbc_textField_1 = new GridBagConstraints();
gbc_label.insets = new Insets(0, 0, 5, 0);
gbc_textField_1.fill = GridBagConstraints.HORIZONTAL;
gbc_textField_1.gridx = 1;
gbc_textField_1.gridy = k;
String labelName = label.getText();
switch (labelName) {
case "sirketAdi":
field.setText(labelList.get(i).getText());
break;
case "bosLabel-1":
field.setText(labelList.get(i).getText());
break;
case "bosLabel-2":
field.setText(labelList.get(i).getText());
break;
case "bosLabel-3":
field.setText(labelList.get(i).getText());
break;
case "bosLabel-4":
field.setText(labelList.get(i).getText());
break;
case "kod":
field.setText(urunOlustur.getKod());
break;
case "sezon":
field.setText(urunOlustur.getSezon());
break;
case "renk":
field.setText(urunOlustur.getRenkAd());
break;
case "grup":
field.setText(urunOlustur.getGrup());
break;
case "model":
field.setText(urunOlustur.getModel());
break;
case "beden":
field.setText(urunOlustur.getBeden());
break;
case "cinsiyet":
field.setText(urunOlustur.getCinsiyet());
break;
case "marka":
field.setText(urunOlustur.getMarka());
break;
case "pesinSatisFiyati":
double a = urunOlustur.getPesinSatisFiyati();
String[] parts = (String.valueOf(a)).split("\\.");
String b = "";
if (parts[1].equals("0")) {
b = parts[0] + ".00";
} else {
if (parts[1].length() == 1) {
b = parts[0] + "." + parts[1] + "0";
} else {
b = parts[0] + "." + parts[1];
}
}
field.setText(b);
break;
case "taksitliSatisFiyati":
double c = urunOlustur.getTaksitliSatisFiyati();
String[] parts1 = (String.valueOf(c)).split("\\.");
String d = "";
if (parts1[1].equals("0")) {
d = parts1[0] + ".00";
} else {