• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JTextArea As JRadioButton

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'd be inclined to keep the radioButton and build on a textArea.

something like this

reply
    Bookmark Topic Watch Topic
  • New Topic