public void setDialogButton(String[] buttons){
        dialogButtonsPanel.removeAll();
        dialogButtonsPanel.add(dialogFiller);
        
        for(String buttonName : buttons){
            if(buttonName.equals("ok")){
                dialogButtonsPanel.add(okButton);
            }
            else if(buttonName.equals("cancel")){
                dialogButtonsPanel.add(cancelButton);
            }
            else if(buttonName.equals("close")){
                dialogButtonsPanel.add(closeButton);
            }
        }
    }