Examples of QuizType


Examples of com.jguice.quizzle.types.QuizType

                quizBaseName = JOptionPane.showInputDialog(mainPane,"Enter Quiz Name","Quiz Name",
                        JOptionPane.QUESTION_MESSAGE);
                if (quizBaseName == null || quizBaseName.trim().length() == 0) { return; }

                // TODO Get Quiz Types from somewhere else
                QuizType audioQuiz = new QuizType("Audio","aqz");
                QuizType textQuiz = new QuizType("Text","tqz");
                QuizType[] quizTypes = {audioQuiz, textQuiz};

                QuizType quizType = (QuizType)JOptionPane.showInputDialog(mainPane,"Choose Quiz Type",
                "Quiz Type Selection", JOptionPane.INFORMATION_MESSAGE, null,
                quizTypes, quizTypes[0]);
                if (quizType == null) { return; }

                quizExt = quizType.getExtension();

                quizName = quizBaseName + "." + quizExt;
                manager.setQuizData(quizName,"");
                quizList.setListData(manager.getQuizNames());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.