private void updateTable(){
        _files = new ArrayList<File>();
        _dirs = new ArrayList<File>();
        
        int rowCount=_tablemodel.getRowCount();
        for (int i = rowCount - 1;i >= 0;i--) {
            _tablemodel.removeRow(i);
        }
        
        File folder = new File(_currentpath);
        File[] filelist = folder.listFiles();
        if (!filelist.equals(null)){
        	for (File currentfile : filelist){
        		if(currentfile.isFile())
        			_files.add(currentfile);
        		else if(currentfile.isDirectory())
        			_dirs.add(currentfile);
        	}
        	if(!_currentpath.equals(_rootpath))
        		_tablemodel.addRow(new Object[]{"..","","","yes"});
        	for(int i = 0;i<_dirs.size();i++){
        		_tablemodel.addRow(new Object[]{_dirs.get(i).getName(),"",new SimpleDateFormat().format(new Date(_dirs.get(i).lastModified())),"yes"});
        	}
        	for(int i = 0;i<_files.size();i++){
        		_tablemodel.addRow(new Object[]{_files.get(i).getName(),_files.get(i).length() + " bytes",new SimpleDateFormat().format(new Date(_files.get(i).lastModified())),"yes"});
        	}
        	_pathlabel.setText("path:" + _currentpath);
        }
        else{
        	if(!_currentpath.equals(_rootpath))
        		_tablemodel.addRow(new Object[]{"..","","","yes"});        	
        }
	}