• Post Reply Bookmark Topic Watch Topic
  • New Topic

Regarding Swing TextArea  RSS feed

 
Krunal Naik
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I need help in regarding textarea
where output is a string coming from different class method.
textarea.settext(ouput);
In textarea,I am showing output lets say { java,java1,java2,java3)
now i want to do some eventlistner or button
if i select java then show this oop from textarea
if i select java1 then show this oop1 from textarea
if i select java2 then show this oop2 from textarea
if i select java3 then show this oop3 from textarea
can i make JList or what
??

 
Wouter Oet
Bartender
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I understood you correctly then yes that would be a solution. Here is how to do it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!