protected static ImageIcon createImageIcon(String path) {
        java.net.URL imgURL = semestralni.prace.MainWindow.class.getResource(path);
        if (imgURL != null) {
            return new ImageIcon(imgURL);
        } else {
            return null;
        }
    }