Exemple #1
0
 // for viewing the selected element details in table
 private void view() {
   boolean status = true;
   if (table1.getSelectedRowCount() != 1) {
     status = false;
     new ValidationMSG(this, "Please Select A Row from Table Then Click");
   }
   if (status) {
     rack = rackList.get(table1.getSelectedRow());
     textField1.setText(rack.getRackName());
     textArea1.setText(rack.getRackDesc());
     comboBox1.setSelectedItem(fieldName.getStoreName(rack.getStoreId()));
   }
 }
Exemple #2
0
 // this method show all store name
 private void storeName() {
   ArrayList<String> storeNames = (ArrayList<String>) fieldName.getAllStoreName();
   for (String name : storeNames) {
     comboBox1.addItem(name);
   }
 }