public void loadOrder(){
        
      orderDataAccesor dataAccessOrder=new orderDataAccesor();
      
      List<order> orderList=new ArrayList();
      DefaultTableModel orderDataTable=new DefaultTableModel();
      
      Object[ ] columnNames=new Object[5];
      Object[ ] fieldValues=new Object[5];
      //Patient myPatient=null;
      
      try{
         orderList=dataAccessOrder.retrieveOrderData(supplierDetailsOrderCombo.getSelectedItem().toString());
      }
      
      catch(SQLException e){
          System.out.println(e.getMessage());
      }
      
      if(orderList.isEmpty()){
          JOptionPane.showMessageDialog(null,"No orders from the selected supplier ","Information",JOptionPane.WARNING_MESSAGE);
      }
      
      
      columnNames[0]="OrderID";
      columnNames[1]="Supplier Name";
      columnNames[2]="Order Date";
      columnNames[3]="Order Info";
      columnNames[4]="Order Amount";
      
      
      orderDataTable.setColumnIdentifiers(columnNames);
      
      if(orderList.size()>0){
         
          for (order newOrder : orderList) {
              tempOrder = newOrder;
              fieldValues[0]=tempOrder.getOrderID();
              fieldValues[1]=tempOrder.getSupplierName();
              fieldValues[2]=tempOrder.getOrderDate();
              fieldValues[3]=tempOrder.getOrderInfo();
              fieldValues[4]=tempOrder.getOrderAmount();
              
              orderDataTable.addRow(fieldValues);
          }
          
          this.orderTable.setModel(orderDataTable);
          this.orderTable.setVisible(true);
      }
    }