• Post Reply Bookmark Topic Watch Topic
  • New Topic

A sample application needed...

 
Shiaber Shaam
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all..

I need a sample quiz application created using java and applets.Please give me links or do the needful.

The questions should be of multiple choice format.

I need both java and applet sources.

thanks.
 
Nicky Eng
Ranch Hand
Posts: 378
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
maybe you should go search for it in some browser.
but definitely not here.

good luck.
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
create a Question class with the following fields
String question;
String[] choices;
int correctAnswer;

the frame will have 2 components
questionsPanel at 'Center'
buttonsPanel at 'South'

questionsPanel will be a CardLayout, each 'card' will be a JPanel with a JLabel
for the question and JRadioButtons for the choices

buttonsPanel will have JButtons 'previous', 'next' (and possibly 'finish')
the buttons just have cardlayout.next/previous

should be enough to start you off
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!