Best way to create a GUI questionaire

Hello everyoneWhat is the best way to go about building a GUI based questionnaire? with questions and line for the answers.?Thanks for the answers.
[168 byte] By [va97a] at [2007-11-26 18:42:25]
# 1
Your design should be based on your requirements. Since the requirements are vague, you have a lot of possibilities.Also, "Best" is a useless word unless defined in the situation.
zadoka at 2007-7-9 6:16:24 > top of Java-index,Desktop,Core GUI APIs...
# 2

I agree with zadok...

You can use Netbeans and its gui builder to create pretty nice gui's.

You can create a JPanel class with some controls such as checkboxes or radio buttons and call it Question class...

Then use that pannel for each question you want to put in your GUI...

janunezc@cra at 2007-7-9 6:16:24 > top of Java-index,Desktop,Core GUI APIs...
# 3

What a fantastically vague question.

Have you considered handing out sheets of paper and ballpoint pens? :o)

You could do a simple questionnaire in HTML.

Form layouts in Java are probably best done in TableLayout (third party, free, see Google)

But to answer your question directly, undoubtedly the best way to build it is to do so in a comfy chair with a nice view, listening to some Senser or perhaps Orbital, whilst consuming a decent bottle of Gigondas.

itchyscratchya at 2007-7-9 6:16:24 > top of Java-index,Desktop,Core GUI APIs...
# 4

zadok

Just as I am learning to code in Swing, I am also learning to ask not so vague Swing related questions. sorry if they are, but I am getting there w/ your advices :).

There are no user requirements. It is a questionaire in word format that they want translated in a Java GUI. about 9 questions w/ a line next to the question to write the answr on it.

For example:

I can use a Jlabel for the question, but what JComponent can i use to draw the line ?

va97a at 2007-7-9 6:16:24 > top of Java-index,Desktop,Core GUI APIs...
# 5
JTextFieldIf you want it to look different, implement a new TextFieldUI or just set borders, backgrounds etc on a per-field basis.
itchyscratchya at 2007-7-9 6:16:24 > top of Java-index,Desktop,Core GUI APIs...
# 6
Thanks itchyscratchy. I appreciate the help guys.
va97a at 2007-7-9 6:16:24 > top of Java-index,Desktop,Core GUI APIs...