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 am using a JTextArea for a text editor programme.
Text in the JTextArea is provisionally set in the constructor using teaxtArea.setFont("Serif", Font.PLAIN, 14);
I have added event handlers that allow user to select various font styles and sizes.
However when the new changes are applied via the setFont method the text already in the JTextarea is changed.
Is it possible to apply the new font to new text only?
I love deadlines, I love the whooshing sound they make as they fly by...