public void ActualizeazaActorii()
    {
        //Citeste rutele din baza de date
        try
        {
            ArrayList<String[]> data = Database.TotiActorii();
            actoriData = new String[data.size()][5];
            
            for(int row = 0; row < data.size(); row++)
                for(int colum=0;colum<5; colum++)     
                    {
                        if (colum==2){
                            cheltuieliTotaleActori+=Double.parseDouble(data.get(row)[colum]);
                        }
                        actoriData[row][colum]=data.get(row)[colum]; 
                    }
            
            actoriTable.setModel(new javax.swing.table.DefaultTableModel(
                actoriData, new String []
                {
                    "ID", "Nume", "Salar brut", "Salar net", "Impozit"
                })
            );
        }
        catch(Exception ex)
        {
            JOptionPane.showMessageDialog(null, ex, "Eroare", JOptionPane.ERROR_MESSAGE);
        }
    }