This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I can get my applet to display text passed to it fine, but if I make changes in the JTextArea, when I hit the OK button, getSelectedText() returns nothing--not even the text that I put into it at the start. My guess is that there is something equivalent to an actionlistener (although it isn't that for JTextArea) that takes some action on the text.
Joined: Aug 26, 2010
getSelectedText returns only that text you selected; getText is the method that I needed.