File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTextArea As JRadioButton

 
manos zaxaris
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
its my first question! I dont speak very good english but anyway.
I want your help to solve my problem...
I would like to make 3 JTextAreas to work as JRadioButtons. I will make a multiple choice Test. I take data from a database and the student must select the correct Answer. I have input the Texts from database to three JTextArea and i want to change background color to selected TextArea and if the student change his choice, to another answer-textarea this textarea.backgroundColor to change . Basic i want to execute some expressions if the student press any JTextArea. What needs?
I dont know if you understand me, but if yes, you will solve me one big problem. Thanks.
 
Michael Dunn
Ranch Hand
Posts: 4632
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd be inclined to keep the radioButton and build on a textArea.

something like this

 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic