Here the project i have to make

First i have to create a GUI that contains the normal buttons with minimize, maximize, and X button.
Well, i'm suppose to create 3 questions, and answer them in textbox. Following that, when i hit enter it is suppose to say if you are correct or not. The problem is that i can't seem to get my strings right to compare. It's either that or there is something wrong with my if- else statement. Basically i want it to show if they are correct or incorrect. Please help:
package anaquiz;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.text.*;
public class AnAQuiz extends JPanel {
private JComboBox choice;
private JLabel label;
private JTextField text;
Button CheckAnswer;
Button TryAgain;
private String string1 = "Wilson";
private String string2 = " ";
private String string3= "Ace";
private String string4 = " " ;
private String string5 = "Yes" ;
private String string6 = " ";
public AnAQuiz() {
choice = new JComboBox();
label = new JLabel();
label.setBackground(Color.blue);
text = new JTextField(42);
CheckAnswer = new Button("Check Answer");
TryAgain = new Button("Would you like to try again?");
if (string1.equals(string2)) {
label.setText("correct");
} else if (string2 != (string1)) {
label.setText("incorrect");
if (string3.equals(string4)) {
label.setText("correct");
} else if (string4 != (string3)) {
label.setText ("incorrect");
if (string5.equals(string6)) {
label.setText("correct");
} else if (string6 != (string5)) {
label.setText("correct");
choice.addItem("Tennis Question #1");
choice.addItem("Tennis Question #2");
choice.addItem("Tennis Question #3");
Listener listen = new Listener();
choice.addActionListener(listen);
add(choice);
add(label);
add(text);
add(CheckAnswer);
add(TryAgain);
private class Listener implements ActionListener {
public void actionPerformed(ActionEvent event) {
int c = choice.getSelectedIndex();
switch (c) {
case 0:
label.setText("Whats the famous tennis brand that begins with 'W'?");
break;
case 1:
label.setText("What do you call when someone misses a serve?");
break;
case 2:
label.setText("Should you shake hands after a match?");
break;
public static void main(String[] args) {
JFrame frame = new JFrame("Quiz");
frame.setForeground(Color.RED);
frame.getContentPane().add(new AnAQuiz());
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.pack();
frame.show();
frame.setVisible(true);
Message was edited by:
Vaust

Hi
I Have posted my small project of mine I think it should suffice you.
I don't use database to store the question or the Answer Instead i have stored everything in a string and retriving it.
Go through it and get some idea
import java.awt. *;
import java.awt. event.*;
import javax.swing.*;
class QuestionSeries{
static String info ="Java Online Test Week  \n \nINSTRUCTIONS:\nThere are 25 questions in this test and 25 minutes to complete them all.\nThe finish button is highlighted in blue when you reach the end of the test. \nClicking the finish button will display the results with the correct answers marked in light red.  \n \nThe timecounter  begins when you click on the 'start' button \n \nBest of luck!\n";
static String []question ={"Question 1:\nWhat is the result of attempting to compile and run the following program?\n\npublic class JavaAppclass{\npublic static void main(String args){\n   String myString = \"javaprograms\";\n   System.out.println(myString);\n   }\n}\n",
"Question 2:\nWhat is the result of attempting to compile and run the following program with \n\n>javac JavaApp.java\n>java JavaApp\n\nclass TryFirst{\n   String myString = \"javatest\";\n}\n\nclass JavaApp{\n\npublic static void main(String[] arg){\n System.out.println(new TryFirst().myString);\n}\n}\n",
"Question 3: \nWhat is the result of attempting to compile and run the following program with \n>javac JavaApp.java\n>java JavaApp\n\nclass MyJavaApp{ \n   String myString = \"elephants\"; \npublic static void main(String[] arg){ \n      System.out.println(myString); \n   } \n}\n",
"Question 4:\nWhat is the result?\n\nclass JavaApp{ \n  public static void main(String[] a){ \n    String textstr = \"hello\";\n    for (int i=4; i<5; i++)\n      System.out.println(str); \n  } \n}\n",
"Question 5:\nWhat is the result here?\n\nclass MyJavaApp{ \n  public static void main(String[] a){ \n    int j=0;\n    for (int i=0; i<3; i++) j=j+i;\n      System.out.println(j); \n  } \n}\n",
"Question 6:\nWhat is the result?\n\nclass MyJavaApp{ \n  public static void main(String[] a){ \n    int num1;\n    int num2 = 7;\n    num2= num1 * 2 +3;\n    System.out.println(num2); \n  } \n}\n",
"Question 7:\nWhat is the result?\n\nclass MyJavaApp{ \n  int num1;\n  public static void main(String[] a){ \n    number1=2;\n    int number2 = 7;\n    number2= number1 * 2 +3;\n    System.out.println(number2); \n  } \n}\n",
"Question 8:\nWhat is the result?\n\nclass JavaApp{ \n  static int number1 = 4;\n  public static void main(String[] a){ \n    number1=2;\n    int number2 = 7;\n    number2= number1 * 2 +3;\n    System.out.println(number2); \n  } \n}\n",
"Question 9:\nWhat is the result?\n\nclass JavaApp{ \n  static int number1 = 3;\n  public static void main(String[] arg)\n    int number2 = 7;\n    number2= number2 + number1 * 2 +3;\n    System.out.println(number2); \n  } \n}\n",
"Question 10:\nWhat is the result of compiling and running the following code?\n\nclass JavaApp{ \n  public static void main(String[] a){\n    int x = (int) (Math.random());\n    System.out.println(x); \n  } \n}\n",
"Question 11:\nWhat is the result?\n\nclass Tryclass{ \n  static String text = \"rabbit\";\n  public static void main(String[] a){\n    int num = text.length;\n    System.out.println(num); \n  } \n}\n",
"Question 12:\nWhat would be the result here?\n\nclass Myclass{ \n  public static void main(String[] a){\n    char []rabbit={'a','b','c','d'};\n    int num = rabbit.length;\n    System.out.println(num); \n  } \n}\n",
"Question 13:\nWhat is the result here?\n\nclass JavaApp{ \n  public static void main(String[] a){\n    int number = 10;\n    String mystr = Integer.toBinaryString(number);\n    System.out.println(mystr); \n  } \n}\n",
"Question 14:\nWhat would be the result if we were to run this program with\n>java MyJavaApp hello java world ?\n\nclass MyJavaApp{ \npublic static void main(String[] args){\n    System.out.println(args[1]); \n  } \n}\n",
"Question 15:\nWhat is the result of this program?\n\nclass MyJavaApp{ \n  public static void main(String[] a){\n    double d =1.75;\n    int i = d;\n    System.out.println(i++); \n  } \n}\n",
"Question 16:\nWhat is the result of this program?\n\nclass MyJavaApp{ \n  public static void main(String[] a){\n    int 1stNum = 5;\n    int 2ndNum = 3;\n    double d =1.25 +1stNum/2ndNum;\n    System.out.println(d); \n  } \n}\n",
"Question 17:\nWhat is the result of this program?\n\nclass MyJavaApp{ \n public static void main(String[] arg){\n    int Num1 = 5;\n    int Num2 = 4;\n    double d =1.25 +Num1/Num2;\n    System.out.println(d); \n  } \n}\n",
"Question 18:\nWhat is the result of this program?\n\nclass TryJavaApp{ \n  static float f;\n  public static void main(String[] ar){\n    int Number = 5;\n    f = 1.25;    \n    System.out.println(f*4); \n  } \n}\n",
"Question 19:\nWhat is the result of this program?\n\nclass JavaApp{ \n  static float f;\n  public static void main(String[] ar){\n    int Num = 2;\n    f = (float)1.25 * 2;    \n    System.out.println(f * Num); \n  } \n}\n",
"Question 20:\nWhat is the result of this program?\n\nclass HelloJavaApp{ \n public static void main(String[] ar){\n    byte num = 64;\n    num += num;\n    System.out.println(num); \n  } \n}\n",
"Question 21:\nWhat is the result of this program?\n\nclass JavaApp{ \n  public static void main(String[] a){\n  double d = 1.56789;\n    long num = Math.round(d);\n    System.out.println(num); \n  } \n}\n",
"Question 22:\nWhat is the result of this program?\n\nclass JavaApp{ \n  public static void main(String[] a){\n    double d = 1.56789;\n    int num = (int)Math.round(d * d);\n    System.out.println(num); \n  } \n}\n",
"Question 23:\nWhat is the result of this program?\n\nclass MyJavaApp{\npublic static void main(String[] arg){\n    double doub1 = 1.51;\n    int number1 = (int) (doub1 +0.5);\n    System.out.println(number1); \n    double doub2 = -1.51;\n    int number2 = (int) (doub2 +0.5);\n    System.out.println(number2); \n  } \n}\n",
"Question 24:\nWhat is the result of this program?\n\nclass TryApp{ \npublic static void main(String[] arg){\n    int num = 4;\n    num = (num + 4/2) % num+1;\n    System.out.println(num); \n  } \n}\n",
"Question 25:\nWhat is the result?\n\nclass MyApp{ \n  public static void main(String[] ar){\n    for(int i=0; i<3; i++)\n      for(int j=1; j<3; j++)\n        System.out.print(j+i+\",\"); \n  } \n}\n"
static String [][]answers ={{"It will not compile as the main method  String is not an array\n","It will compile but there will be a runtime error if we try to run it with:- \n>java JavaApp\n","The program is fine, but we will need another program to run it and get the output.\n","It will compile and run and output \"java\" to the screen\n"},{"It will not compile as you cannot have 2 java source files on the same page\n"," \nIt will output \"javatest","It will not compile as the String myString is not-static and it is being accessed from a static method\n"," \nIt compiles but there is no output at runtime\n"},{" \nFine - it will output elephants\n","Runtime error MyJavaApp is not public\n","Compiler error myString is a non-static variable being accessed in a static method\n","Compile error in the main() method\n"},{" \nIt will output hello\n","The out put will be  \nhello\nhello\n"," \nNo output the for loop needs a ' ; ' at the end\n"," \nCompilation error for loops have to start with a zero\n"},{" \n3\n"," \n6\n"," \n4\n"," \n2\n"},{" \n17\n"," \n5\n"," \n3\n","It won't compile\n"},{" \n14\n"," \n7\n"," \n17\n"," \nError.\n"},{" \n16\n"," \n14\n"," \n7\n"," \nError\n"},{" \n15\n"," \n23\n"," \n50\n"," \nError\n"},{" \n1\n"," \nYou cannot predict the random result\n"," \n0\n"," \nError\n"},{" \n6\n"," \n5\n"," \n0\n"," \nError\n"},{" \n4\n"," \n3\n"," \n0\n"," \nError\n"},{" \n00001010\n"," \n10\n"," \n1010\n"," \nError\n"},{"hello java world\n"," \nhello\n"," \njava\n"," \nworld\n"},{" \n1.75\n"," \n2\n"," \n3\n"," \nError\n"},{" \n3.25\n"," \n2.25\n"," \n2.2... and a very long number\n"," \nThe code will not compile\n"},{" \n2.5\n"," \n2.25\n"," \n2.2 ... -something and a very long number\n"," \nThe code will not compile\n"},{" \nError float f is not initialised\n"," \noutput: 5\n"," \noutput: 5.0\n"," \nError, this is not a valid way to initialise a float type variable\n"},{" \n4.0\n"," \n5\n"," \n5.0\n"," \nError, it will not compile\n"},{" \n128\n"," \n-128\n"," \n1\n"," \nError, number is out of range\n"},{" \n1\n"," \n2\n"," \n1.0\n"," \nError\n"},{"3. - and to 15 decimal places\n"," \n2\n"," \n3\n"," \nError\n"},{" 2 \n-2\n"," 1\n-2\n"," 2\n-1\n"," 1\n-1\n"},{" \n1\n"," \n3\n"," \n4\n"," \n6\n"},{"1,2,2,3,3,4\n","1,2,3,3,4,6\n","1,2,3,4\n"," \n0,1,1,2,2,3,3,4\n"} };
static int []n = {2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1};
static String []choice= {"23","2","3","1","1","4","4","3","4","3","4","1","3","3","4","4","2","4","3","2","2","3","3","2","1"};
static int tally = choice.length;
static String testtitle="Java Programming Online Test";
static int timeLimit =10;
static int passMark = 15;
/* OnlineTest class */
public class OnlineTest extends JFrame{
    static String studentname ="";
    static int TOTAL=0;
     static {
     try{
     TOTAL = QuestionSeries.tally;          
     /*      The input window */
     studentname = JOptionPane.showInputDialog("Enter your name: ");
     if(studentname.length() < 1) studentname = "Anonymous   ";
     else studentname = studentname.trim() + " ";
     }catch(NullPointerException e){ System.exit(0); }
         int seconds, minutes;
         int quesnum, itemCheck, mark;
     final String TESTTITLE = QuestionSeries.testtitle;
         final int TIMELIMIT = QuestionSeries.timeLimit;
         final int PASS = QuestionSeries.passMark;
         String []answers = new String[TOTAL];
     JButton []choice_button = new JButton[6];
     JTextArea answerboxes[] = new JTextArea[4];
     JCheckBox []boxes = new JCheckBox[4];
         JTextPane pane = new JTextPane();
     JLabel student, choose, message, timecounter, testresult;
         boolean start_test, check_answer, allowRestart, finishtest;
     Northwindow panelNorth = new Northwindow();
     Southwindow panelSouth = new Southwindow();
     Centerwindow panelCenter = new Centerwindow();
/*  OnlineTest Constructor */
     protected OnlineTest(){
        for (int i=0; i<TOTAL; i++) answers[i] ="";
          getContentPane().setLayout(new BorderLayout() );
          getContentPane().add("North", panelNorth);
          getContentPane().add("South", panelSouth);
          getContentPane().add("Center", panelCenter);
          int width = 0, height=0;
             if(java.awt.Toolkit.getDefaultToolkit().getScreenSize().getWidth()<799){width=          640;           height=460; }
             else {width=720; height=540; }
          setSize(width,height);
          Dimension dim = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
          setLocation((dim.width-width)/2, (dim.height-height)/2);
**  Northwindow class
class Northwindow extends JPanel{
**  Northwindow constructor
    public Northwindow(){
          setLayout(new GridLayout(2,2));
          setBackground(new Color(230, 230, 255));
          student = new JLabel("\t Welcome : "+studentname+" to the Online Java Test");
          student.setFont(new Font("",Font.BOLD,16) );
          message = new JLabel();
          message.setForeground(Color.blue);
          add(student);
          add(message);
          add(new JLabel("               ") );
          add(new JLabel("               ") );
        setBorder(BorderFactory.createEtchedBorder() );
**  Southwindow class
class Southwindow extends JPanel{
     public Southwindow(){
          String []key = {"","start:","next:","finish:","check next:","check previous:"};
               for(int i=0; i<choice_button.length; i++)
                    choice_button[i] = new JButton(key);
                    choice_button[i].addActionListener(new ActionHandler() );
                    if(i !=0)add(choice_button[i]);
setBorder(BorderFactory.createEtchedBorder() );
** Centerwindow class
class Centerwindow extends JPanel{
     public Centerwindow(){
          setLayout(new GridLayout(1,2) );
          JScrollPane west = new JScrollPane(pane);
          pane.setForeground(Color.red);     
          pane.setFont(new Font ("monospaced",0,12) );
          pane.setText(QuestionSeries.info);
          pane.setEditable(false);
          JPanel east = new JPanel();
          east.setLayout(new BorderLayout() );     
          JPanel northEast = new JPanel();
          northEast.setBackground(new Color(230, 230, 255) );
          east.add("North", northEast);
          JPanel westEast = new JPanel();
          westEast.setLayout(new GridLayout(6,1) );
          east.add("West", westEast);
          JPanel centerEast = new JPanel();
          centerEast.setLayout(new GridLayout(6,1) );
          centerEast.setBackground(new Color(255,255,200));
          east.add("Center", centerEast);
               timecounter = new JLabel(" There are "+TOTAL+" questions in total");
               timecounter.setFont(new Font ("Arial",Font.BOLD,16) );
               timecounter.setForeground(new Color(0,90,20) );
               northEast.add(timecounter);
               westEast.add(new JLabel(" "));
String []boxs = {" A ", " B ", " C ", " D "};
               for(int i=0; i<boxes.length; i++) {
                    boxes[i] = new JCheckBox(boxs[i]);
                    boxes[i].addItemListener(new ItemHandler() );
                    westEast.add(boxes[i]);
westEast.add(new JLabel() );
          choose = new JLabel(" CHOOSE CORRECT ANSWERS");
          choose.setBorder(BorderFactory.createEtchedBorder() );
          centerEast.add(choose);
JScrollPane panes[] = new JScrollPane[4];
               for(int i=0; i<answerboxes.length; i++){
                    answerboxes[i] = new JTextArea();
               answerboxes[i].setBorder(BorderFactory.createEtchedBorder() );
                    answerboxes[i].setEditable(false);
                    answerboxes[i].setBackground(Color.white);
                    answerboxes[i].setFont(new Font("",0,12) );
     answerboxes[i].setLineWrap(true);
answerboxes[i].setWrapStyleWord(true);
panes[i] = new JScrollPane(answerboxes[i]);
               centerEast.add(panes[i]);
          if(TIMELIMIT >0)testresult = new JLabel(studentname+", You have only : "+TIMELIMIT+" minutes to complete.");
          else testresult = new JLabel(" There is no time limit for this test");
          testresult.setBorder(BorderFactory.createEtchedBorder() );
          centerEast.add(testresult);
     add(west);
     add(east);
** ActionHandler class to handle all the action events from the buttons.
class ActionHandler implements ActionListener{
/* actionPerformed method */
     public void actionPerformed(ActionEvent evt){
     String source = evt.getActionCommand();
          if(source.equals("start:")){
               choice_button[1].setVisible(false);
               start_test=true;
               allowRestart=true;
if(TIMELIMIT >0)new Timer(); // inner Timer class
               panelSouth.remove(choice_button[1]); //start
displayquestion();
     if(start_test){
          if(source.equals("previous:")) {                
               recordanswer();
               quesnum--;
          if(quesnum == -1) quesnum=TOTAL-1;
               checkteststatus();
displayquestion();
          if(source.equals("next:")) {
               recordanswer();
               quesnum++;
               if(quesnum == TOTAL-1) finishtest=true;
               if(quesnum == TOTAL) quesnum=0;
checkteststatus();
displayquestion();
          if(source.equals("finish:")) {
               if (finishtest){
                    recordanswer();
                    quesnum = 0;
                    choice_button[4].setBackground(Color.lightGray);
                    timecounter.setForeground(Color.blue);
                    timecounter.setFont(new Font ("Arial",0,14) );
                    start_test=false;
                    check_answer=true;
                    panelSouth.add(choice_button[0]);
                    mark_ques();
                    displayquestion();
                    checkteststatus();
                    calculateResult();
               else JOptionPane.showMessageDialog(null,"Cycle through all questions before pressing finish",
                                                                                "User Message",JOptionPane.INFORMATION_MESSAGE);
     if (check_answer){
          if(source.equals("check next:")) {
               quesnum++;
               if(quesnum == TOTAL) quesnum=0;
               mark_ques();
               displayquestion();
               checkteststatus();
          if(source.equals("check previous:")) {
               quesnum--;
               if(quesnum == -1) quesnum=TOTAL-1;
               mark_ques();
               displayquestion();
               checkteststatus();
     validate();
/* Timer class */
class Timer extends Thread implements Runnable{
     public Timer(){
          new Thread(this).start();
public void run() {
          while(start_test){
try {
Thread.sleep(1000);
seconds++;
                    if(seconds % 60 == 0 && seconds != 0){
seconds -= 60;
minutes++;
                    timecounter.setText(" Time Counter: "+minutes+" mins : "+seconds+" secs ");
                    if(minutes==TIMELIMIT){
                         start_test=false;
                         endTest();
catch(InterruptedException ex) { System.out.print(ex); }
/* checkteststatus method */
          public void checkteststatus(){
          if((quesnum == TOTAL-1)&&(start_test))choice_button[3].setBackground(Color.green);
          else choice_button[4].setBackground(Color.lightGray);
     if(answers[quesnum].length() >0){
               for(int i=0; i<answers[quesnum].length(); i++)
               boxes[Integer.parseInt(answers[quesnum].substring(i,i+1) )-1].setSelected               (true);
          else for(int i=0; i<boxes.length; i++)boxes[i].setSelected(false);
/* displayquestion method */
     public void displayquestion(){
int j = quesnum+1;
          pane.setText(QuestionSeries.question[quesnum]);
          if(start_test)message.setText("Question "+j+" out of "+TOTAL);
for (int i=0; i<4; i++)answerboxes[i].setText(QuestionSeries.answers[quesnum][i]);
          if(start_test){
String temp="";
               if(QuestionSeries.n[quesnum]==1) temp="<html>   Choose only           <b>ONE</b> Option</html>";
               else if(QuestionSeries.n[quesnum]==2) temp="<html>  Choose <b>TWO          </b> Options</html>";
          else if(QuestionSeries.n[quesnum]==3) temp="<html>  Choose <b>THREE</b>           Options</html>";
else temp="<html>  <b>ALL are true</b> true</html>";
          choose.setText(temp);
          else {
          timecounter.setText(" Your choices are shown in the boxes");
choose.setText(" Correct answers are marked in light red.");
/* record answer method */
     public void recordanswer(){
          String tmp = "";
          for(int i=0; i<boxes.length; i++) if(boxes[i].isSelected() ) tmp +=i+1;
answers[quesnum] = tmp;
/* endTest method */
     public void endTest(){
          message.setText("TIME OVER: please press 'finish'");
choice_button[2].setEnabled(false);
choice_button[3].setEnabled(false);
choice_button[4].setEnabled(true);
/* mark_ques() method to highlight correct answers */
     public void mark_ques(){
          for(int i=0; i<answerboxes.length; i++) answerboxes[i].setBackground(Color.white);
          for(int i=0; i<QuestionSeries.choice[quesnum].length(); i++)
               answerboxes[Integer.parseInt(QuestionSeries.choice[quesnum].substring(i,i+1))-1].setBackground(Color.red);
          if(QuestionSeries.choice[quesnum].equals(answers[quesnum])) message.setText("Answer correct, well done!");
          else message.setText("Sorry, you got this one wrong.");
     public void calculateResult(){
          mark=0;
          double temp=0.0;
java.text.DecimalFormat df = new java.text.DecimalFormat("#0.#");
          for(int i=0; i<TOTAL; i++)if(QuestionSeries.choice[i].equals(answers[i]))mark++;
          temp=(double)mark;
          if(temp/TOTAL*100 >=PASS) testresult.setText(" Well done "+studentname.substring(0,studentname.indexOf(' ') )+", you passed");
          else testresult.setText(" Better luck next time "+studentname.substring(0,studentname.indexOf(' ') ) );
          student.setText(" Final score for "+studentname+": "+mark+" out of "+TOTAL+": "+df.format(temp/TOTAL*100)+"%");
          new Resultwindow().show();
/* Resultwindow class */
class Resultwindow extends JFrame{
          Resultwindow() {
     super( studentname+" results: " +(mark*100/TOTAL >=PASS?"PASS":"FAIL") );
          Container cont = getContentPane();
          cont.setLayout(new GridLayout(TOTAL/2+3,5,2,5) );
          cont.setBackground(new Color(255,220,255) );
          cont.add(new JLabel(" "+"Marks: "+mark+"/"+TOTAL+": "+"Percentage: "+(mark*100/TOTAL)+"%") );
for(int i=0; i<3; i++)cont.add(new JLabel() );
     String temp[] = new String[TOTAL];
               for(int i=0; i<TOTAL; i++){
                    if(QuestionSeries.choice[i].equals(answers[i])) temp[i]="correct";
                    else temp[i]="wrong";
               for(int i=0; i<TOTAL; i++) cont.add(new JLabel(" Question "+(i+1)+": "+temp          [i]) );
          pack();
          setLocation(200,200);
/* ItemHandler class */
class ItemHandler implements ItemListener{
     public void itemStateChanged(ItemEvent evt){
     if(start_test){
          for(int i=0; i<boxes.length; i++) if(boxes[i].isSelected() ) itemCheck++;
          if(itemCheck > QuestionSeries.n[quesnum]){
               java.awt.Toolkit.getDefaultToolkit().beep();
if(QuestionSeries.n[quesnum]==1)     JOptionPane.showMessageDialog(null,"<html><font           size='4' color='00308a'><center>"+
     "There is only "+QuestionSeries.n[quesnum]+" possible<br> answer to question "+(quesnum+1)+
"<html>","User Information Message",JOptionPane.INFORMATION_MESSAGE);
               else JOptionPane.showMessageDialog(null,"<html><font size='4' color='00308a'><center>"+
"There are only "+QuestionSeries.n[quesnum]+" possible<br> answers to question "+(quesnum+1)+
"<html>","User Information Message",JOptionPane.INFORMATION_MESSAGE);
          itemCheck=0;
/* main method */
     public static void main(String [] args){
          OnlineTest frame = new OnlineTest();
          frame.setTitle(" "+QuestionSeries.testtitle);
          frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
          frame.setVisible(true);

Similar Messages

  • I am attempting to upgrade from Adobe Premier Elements 9 to Adobe Premier Elements 13 after using 13's trial version for a few weeks.  I am unable to find where and how to do this without losing the project I have been working on.  Please help?

    I am attempting to upgrade from Adobe Premier Elements 9 to Adobe Premier Elements 13 after using 13's trial version for a few weeks.  I am unable to find where and how to do this without losing the project I have been working on.  Please help?

    Vere Clarke
    Premiere Elements 9.0/9.0.1 and Premiere Elements 13 are standalone products.
    So, you can have both on the same computer, but only open one for your work.
    The classical recommendation is to finish a project in the version in which it was created since there
    is no guarantee that a project from an earlier version will open in the later version. Probably will, but
    no guarantees. And, when you do explore this, do it from a copy of the earlier version project. Once you
    take the earlier version project into a later version one, you cannot go back to edit the later version edited
    project in the earlier version program.
    If you have both versions (9 and 13) on the same computer and you have not moved, deleted, renamed any of the version 9's files/folders,
    right click the saved closed Premiere Elements 9.0/9.0.1 project file, select Open With, and then Adobe Premiere Elements 13.
    (Your 9.0/9.0.1 saved closed project file should be found in Libraries/Documents/Adobe/Premiere Elements/9.0.)
    Please review and consider. If any questions or need clarification, please do not hesitate to let me know.
    Thank you.
    ATR

  • IMovie 11 will not play any of the projects I have created over the past several months.  It will play iMovie events.  Anyone else having this problem?  Please help - Thanks

    Movie 11 will not play any of the projects I have created over the past several months.  It will play iMovie events.  Anyone else having this problem?  Please help - Thanks

    Thanks for the suggestion...
    I just got back from the Apple Store for the second visit with the Mac Genius to try to resolve the problem. 
    First visit we trashed the iMovie 11 application and reinstalled iMovie and ran a software update. Upon relaunching we were pleased that all projects and events ran perfectly from both the HD and the Drobo. 
    After lugging my 27" iMac back home and restarting it the same problem appeared.  I returned to the Apple store for a second visit. This time I left the iMac at the store overnight.  The apple service guys were able to duplicate the problem and wiped my hard drive.  There appears to be a bug with iMovie 11 (not confirmed) and an elevated report was submitted to Apple engineers. 
    I am leaving my "old" projects and events on the external drive unless I need to import them.  I am not going to restore from back up and will use a "clean" version of iMovie11.  No guarantees the problem won't come back.  This issue consumed a TON of my time.... hopefully Apple can fix iMove11.

  • In iMovie when I move my curser through pictures in the project, I have an empty screen or it shows the first picture only..what might be the problem?

    In iMovie when I move my cursor through pictures in the project, I have an empty screen or it shows the first picture only..what might be the problem?

    Try putting the iPad into recovery mode and see if that fixes it : http://support.apple.com/kb/ht4097

  • Since Maverick update, when I try to share a video I get Error 1 frame. I have duplicated the project, I have deleted all rendered files. I have tried it several times and always gives me a different frame.

    Since Maverick update, when I try to share a video I get Error 1 and a frame number. I have duplicated the project and tried to share. I have deleted all rendered files and then render again. I deleted all rendered and then tried to share it before rendering. Nothing works. I shared the project a couple of weeks ago and was fine. I only changed a small clip and can't share to burn a dvd.

    What software version? What computer?
    Trash preferences. Switch off background rendering. Trash project and event render files. Do not render. Export. Do not do anything on the computer during export. Make sure App Nap is switched off in the Finder.

  • Items in the Project window have changed?

    Hi,
    I have been working for a few hours now.
    In the Project window there has been an icon of my HDD called "Macbook" sitting at the top of the list. I've been placing folders and individual projects under this HDD. I'm guessing the HDD icon represents the top level.
    I then placed all of my projects into folders. For some reason the HDD icon has disappeared and I can't get it back. The reason this is a problem is that I now can't place a new project at the top level (ie: under the HDD), I have to place it in one of the folders. I can't even grab a project that's in one of the folders and drag it out of that folder.
    Anyone have any ideas?

    I then placed all of my projects into folders
    Did you do this within iMovie? The usual method is to choose File>New Folder from iMovie's menu. If you've created the folders outside of iMovie, that could be causing the problem.
    Try deleting iMovie's preference file. Close iMovie first, then navigate to your user folder Library>Preferences and trash the file named "com.apple.iMovie8.plist". When next opened, iMovie will create a new file with the default settings. You may need to change some settings to suit your own preference (iMovie menu - iMovie>Preferences).
    John

  • HDD to SDD clone drive, will not bootup. Are there changes in the Bios I have to make?

    Pavilion g7 notebook, Win8-pro, Clone the new SDD from the HDD, will not boot up, getting various Bios errors. What changes do I have to make in the Bios setup to get the new SDD to work, PLEASE.  I have done this with win 7  with no problems.  

    Hello Ronk10.  I understand you're unable to boot your notebook after installing an SSD.
    You mention that you're getting BIOS errors.  What are the errors that you're receiving?  
    You may need to update your BIOS in order to properly use the new SSD.  If you provide me with your model number I'll locate the latest BIOS for you.  This document can show you where it is located.
    I will keep an eye out for your response.  Have an excellent day!
    Please click the white star under my name to give me Kudos as a way to say "Thanks!"
    Click the "Accept as Solution" button if I resolve your issue.

  • Project 2013- Trying a to move a task within the project and have it respect new predecessor rather than old one

    Ok, I am working on a rather large project schedule.
    Before having to upgrade to Project 2013, the file was used in Project 2007.
    Basically I am having a problem with moving tasks only to have them still respect their old predecessor instead of just the new one.
    Basically I have 4 tasks ( with start dates): Task A: 1st of month, Task B: 5th of month, Task C: 9th of month, Task D: 13th of month.
    I would want to move say Task D infront of Task B and have it go A/1st, D/5th, B/9th, C/13th. But all that happens is that the tasks change order but all the dates remain with their original tasks. This wasn't a problem before Project 2013.
    Is there any fix for this outside of having to unlink and relink every time I make  change?

    GarrettW23,
    You're right, it doesn't work the same in Project 2010 & later as it did in Project 2007 and earlier. The feature you desire is controlled by the option setting to autolink inserted or moved tasks. As far as I can tell there is a bug that was likely
    introduced when manual scheduling was added to Project 2010. Now, if the option is set, two links will be set up, the original link to the old predecessor and a new one to the new predecessor.
    I'm surprised this bug hasn't been fixed but I guess it's not something a lot of users have an issue with. Meanwhile, edit your links after drag and drop as Rod suggests.
    John

  • Ok heres the deal, I have 3.1.3 on my Touch 32gb and I downloaded the oh so fabulous iOS 5.1.5 or whatever and now its "backing up iPod touch" but it gets stuck at like 1/4 the way thru the process and it doesn't complete. Whats the problem?

    Can someone please help me? I can't believe they charge you to ask them a question this has to be the worst customer service by any company I've ever seen.

    Alternatively - you could ask the question in these discussion pages - for free!
    Now there's a thought. Apple actually provide free access to free information from other people who use iPods. Wow!
    So to your problem. Which generation of iPod Touch do you have and where and how did you get iOS 5? Use this page http://support.apple.com/kb/HT1353 for help in identifying your model. You need to do this (and then tell us) because older versions of Touch cannot install iOS 5 and the fact that you have iOS 3.1.3 on your iPod is cause enough to ask which model you have.
    1st gen Touch can install up to iOS 3.1.3
    2nd gen Touch can install up to iOS 4.2.1

  • How do I contact iTunes to retrieve the projects I have pay?

    When I purchase a Gems in the game, but I did not get the gems then just told me to contact iTunes to complete.

    How to report an issue with Your iTunes Store purchase

  • How do I save Icon templates with the Project files?

    My project files are stored in a folder, say, "My Documents\LabVIEW\My Project", and this folder, in turn, is saved under (Sub)Version Control.  I'd like to include a sub-folder called "Icon Templates" that could contain the icon templates I'm using in this project, but they seem to be "forced" into "My Documents\LabVIEW Data\Icon Templates" (almost the same, but the "owning folder" is different).
    Is there any way to change, preferably on a Project-by-Project basis, the default location for Icon Editor templates?  I tried to figure this out, and saw that one could change where "3rd Party" templates were stored, but that didn't seem to do anything (maybe because I don't understand the concept of a "3rd Party"?).
    An important (to me!) reason to accomplish this is that I want to commit my new icons when I commit the rest of the Project, and have them appear when I checkout the project on another machine (or do an update from the Repository).
    Suggestions welcomed ...
    Bob Schor

    Well, I thought of this as well.  I did change Default Data Documents (which seems to be where Icon Editor expects to find its Templates file) to My Documents\LabVIEW (instead of LabVIEW Data), and that worked (sort of).  But that still doesn't solve my problem.  I have multiple projects -- My Docs\LabVIEW\Project 1, say, and My Docs\LabVIEW\Project 2, and want to have a specific set of icon templates for each stored, say, as Project 1\Icon Templates and Project 2\Icon Templates.
    My problem is two-fold.  First, there is a setting in Icon Editors, Tools, that seems to be designed to let you designate where your "special" templates are located, which I've set to, for example, My Docs\LabVIEW\Project 1\Icon Templates.  However, when using the Icon editor, these templates never appear!  It's as though it's still "locked" into the "3rd Party" sub-folder of the parent Icon Templates folder.  Second, even if this worked (which it doesn't), is there a way to "embed" this setting as part of Project so that the settings "stay with the Project" (and can thereby be customized)?  One important reason to do this is to simplify organizing Projects and folders on disk -- I keep them "together" (use the same structure for both, so a Project is contained, on disk, inside a single set of nested folders), which greatly simplifies and facilitates using Version Control to manage development.
    Thanks for the reference.  I didn't know about all of the symbolic names.  It does appear that they are only used in the VI Search Path entry, correct?
    Bob Schor

  • How do you re-locate an I-movie project that disappears from the project / edit library in i-movie11?

    As a school teacher, I viewed the student's movie project in edit mode and I known it was there. The student was attempting to burn the project to a disc to back it up and it disappeared. The raw video clips are still sitting there but the edited project is no longer visible. I've searched the computer but can't find it anywhere. I think the student renamed the project as they were preparing yo back it up. Any advice on how to locate the project would be appreciated.

    iMovie will only see projects that are in the Home/Movies/iMovie Projects folder (or in the iMovie Projects folder at the top level of an external drive).
    Your student may have moved the project somewhere else. If so, the solution is to move it back, and then restart iMovie.
    The project will have a file extension of .rcproject.
    If you do not know where he might have moved the project, try doing a Spotlight Search on rcproject, and they should all come up. (Spotlight is in the top right corner of your screen).

  • How do I export a video so I can still edit it in the future and have all data (no compression)

    I am super new to Premiere Elements and video in general so my question is probably a no brainer.  I am taking parts of a video and exporting them out so I can come back later and edit them.  When I try this the dimension is changing even though I'm checking 1080x720.  It's also losing quality.   I'm a wedding photographer (not videoagrapher) and don't know the correct terminology to use.  This is for a family wedding I did where I also experimented with video.  Basically what I would like to do is take the "raw" clips and grab the scenes I want, export them and bring them back at a future time and edit them without losing quality.
    I have tried researching this and am so frustrated.  I just can't figure this out.  Thank you in advance to anyone who can point me in the right direction. 

    clarkiek
    Thanks for the reply. From your screenshot, I cannot be sure if you are using Premiere Elements 12 or 11 (very similar) on Windows. So, for now I will assume Premiere Elements 12 on Windows 7, 8, or 8.1 64 bit.
    From your screenshot, it would appear that your source is
    1920 x 1080 @ 23.976 progressive frames per second
    So, you or the project should have set a project preset of
    NTSC
    DSLR
    1080p
    DSLR 1080p24
    If the program was allowed to set the project preset based on the properties of the first video drag from Project Assets to Timeline, we can find out if it did it "right". Sometimes it does not. To do this...Edit Menu/Project Settings/General. And, if the Project Settings look like the following screenshot, the program set the project preset correctly:
    If you do not see the above, then new project whose project preset you set manually before you import your video.
    To do that...
    In Expert workspace, File Menu/New/Project and Change Settings.
    Change Settings to NTSC/DSLR/1080p/DSLR1080p24
    Before exiting that area, be sure to have a check mark next to "Force Selected Project Settings on This Project" in the new project dialog.
    Now the big question, what to export this TImeline to so that the export will be part of a family of exports to joint a grand project. If you know that all you want as the destination is NTSC DVD-VIDEO Widescreen on DVD disc, then you can export each TImeline as a DV AVI Widescreen file (Publish+Share/Computer/AVI with Presets = DV NTSC Widescreen. When all is said and done, all these DV AVI Widescreen files will be imported in a new Premiere Elements 12 NTSC DV Widescreen project for burn to with Publish+Share/Disc/DVD disc with NTSC _Widescreen_Dolby DVD preset.
    Alternative way, if you had HD plans for this edited video on this Timeline, could be
    a. Project Preset - set as before 1920 x 1080p24
    b. Export as Publish+Share/Computer/AVCHD with Presets = MP4 - H.264 1920 x 1080 p24
    c. Combine all the individual .mp4 into one grand project (project preset = 1920 x 1080p24) with a destination for
    DVD-VIDEO Widescreen on DVD disc
    or
    AVCHD format on DVD disc
    or
    Blu-ray disc format on Blu-ray disc.
    You wrote
    In mpeg I used preset HDTV 1080p 29.97 high quality and it seems to save it just fine.  But can I bring these files back in and edit with non-destructive editing?
    This would be a Publish+Share/Computer/MPEG choice (MPEG2 HD.mpg 1920 x1080p29.97 versus what I described as an alternative Publish+Share/Computer/AVCHD choice (AVCHD.mp4 1920 x 1080p24). The project preset for the grand project might be:
    for 1920 x 1080p29.97, NTSC/DSLR/1080p/DSLR1080p30 @ 29.97
    for 1920 x 1080p24, NTSC/DSLR/1080p/DSLR1080p24
    Irrespective of the frame rate along the line, in the end, burn to presets are standarded at @29.97 interlaced frames per second.
    Please review and consider. If I did not explain clearly enough, please let me know, and I will rewrite if need be.
    Thanks.
    ATR

  • So heres the situation...

    so heres the situation, i have a G4 powermac with a CD drive and a G3 ibook with a dvd drive, i want to reinstall os x on my powermac, how do i do this without getting a dvd drive or the install cds, can i install over the network, or firewire or something
    oscar

    Hi oscar,
    I presume you have 2 legal licenses for both of your computers.
    You can install Tiger from DVD with the iBook booted into firewire target disk mode: How to use FireWire target disk mode.
    Short version:
    1. Insert the install DVD into the iBook
    2. Boot the iBook while holding down the t-key.
    3. Connect the 2 computers with a firewire cable
    4. Boot the PowerMac while holding down the option-key
    5. Select the install DVD as startup volume
    If this answered your question please consider granting some stars: Why reward points?

  • I am using Aperture to make a photo book.  I have about 400 photos in the project.  I am able to select the photos I want for 20 pages, then when I try to add a page, all the pictures are selected.  How do I add additional pages and still control the pix

    I am using Aperture to make a photo book.  I have about 400 photos in the project that I am selecting from.  I want to use about 70 for the book.  I am allowed to pick and choose photos until I fill 20 pages.  Then when I select add page, I am allowed to select all the pictures in the project.  I am not allowed to select.  I think I hve to change a setting, bt what?  Thanks for the help.

    .  I am not allowed to select.  I think I hve to change a setting, bt what?
    David, have you enabled the "Autoflow" options? There are settings behind the cogwheel, that will automatically place unused images onto new pages. If you only want to select a few images from a large project, disable these two options:
    Or start your book froman album, that only contains a selection of your images, rather than from the whole project.
    Reagrds
    Léonie

Maybe you are looking for