Making a Quiz question?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sandyw
    New Member
    • Mar 2007
    • 122

    Making a Quiz question?

    Can one make a quiz using Card Layout?
    and if so can be connected to a db

    thanks
    sandyw
  • BigDaddyLH
    Recognized Expert Top Contributor
    • Dec 2007
    • 1216

    #2
    Originally posted by sandyw
    Can one make a quiz using Card Layout?
    and if so can be connected to a db

    thanks
    sandyw
    I have always believed that if you can dream it, you can do it. But then I had this dream where the Irresistible Force meets the Immovable Object...

    But to answer your question, why couldn't a program with a Swing GUI connect to a database? Have you looked at Sun's tutorials?

    This Swing Java Tutorial describes developing graphical user interfaces (GUIs) for applications and applets using Swing components

    This JDBC Java tutorial describes how to use JDBC API to create, insert into, update, and query tables. You will also learn how to use simple and prepared statements, stored procedures and perform transactions

    Comment

    • sandyw
      New Member
      • Mar 2007
      • 122

      #3
      Originally posted by BigDaddyLH
      I have always believed that if you can dream it, you can do it. But then I had this dream where the Irresistible Force meets the Immovable Object...

      But to answer your question, why couldn't a program with a Swing GUI connect to a database? Have you looked at Sun's tutorials?

      This Swing Java Tutorial describes developing graphical user interfaces (GUIs) for applications and applets using Swing components

      http://java.sun.com/docs/books/tutorial/jdbc/index.html

      Thanks BigDaddy for the info..
      you rock

      I forgot to also ask can this be applied to the internet.

      Sorry instead of trying to find this info on the internet its much faster to ask the experts on this site.

      thanks

      Comment

      • JosAH
        Recognized Expert MVP
        • Mar 2007
        • 11453

        #4
        Originally posted by sandyw
        Can one make a quiz using Card Layout?
        and if so can be connected to a db

        thanks
        sandyw
        What do you need that CardLayout for? And why does that database come in
        all of a sudden?

        kind regards,

        Jos

        Comment

        • BigDaddyLH
          Recognized Expert Top Contributor
          • Dec 2007
          • 1216

          #5
          Originally posted by sandyw
          Thanks BigDaddy for the info..
          you rock
          I try to stay still, but the boat still rocks ;-)

          Comment

          • sandyw
            New Member
            • Mar 2007
            • 122

            #6
            Originally posted by JosAH
            What do you need that CardLayout for? And why does that database come in
            all of a sudden?

            kind regards,

            Jos
            I though using the CardLayout would be faster to lay out plus each question would be one card. The db is used to track the students score ie results of all the quiz they have taken.
            If this is not the best ideal can you direct me to which would be.
            sandy

            Comment

            • JosAH
              Recognized Expert MVP
              • Mar 2007
              • 11453

              #7
              Originally posted by sandyw
              I though using the CardLayout would be faster to lay out plus each question would be one card. The db is used to track the students score ie results of all the quiz they have taken.
              If this is not the best ideal can you direct me to which would be.
              sandy
              So you need to manage a set of quizes, a single quiz, questions for a quiz, a
              single question (and the correct answer), users, a single user and the quizes
              s/he did and the score(s) for the quizes taken and maybe a bit more.

              Did you analyze your problem a bit? I just did a bit of 'entity' or class analisys.
              That card layout is just a minor concern.

              kind regards,

              Jos

              Comment

              • JosAH
                Recognized Expert MVP
                • Mar 2007
                • 11453

                #8
                Originally posted by BigDaddyLH
                I have always believed that if you can dream it, you can do it. But then I had this dream where the Irresistible Force meets the Immovable Object...
                I sometimes dream that I can fly, but no matter how much I flap my arms the
                next morning I don't notice a lift off. My wife laughs hysterically by that doesn't
                count and my parrots squeaking like hell isn't an incentive either ...

                kind regards,

                Jos ( <--- earth bound ;-)

                Comment

                Working...