Rob Camick wrote:I'm not sure what you expect to see since the foreground color of the text is basically the same color as the gradient color.
Use the setForeground(...) and setCaretColor(...) methods to change the color of the text and caret so it contrasts with your gradient paint.
Rob Camick wrote:Take a look at your painting code.
First you invoke super.paintComponent(), which does the default painting of the text area which is to paint the background and then paint the text.
Then you do your gradient painting, which paints over top of the text.
So the order of the code should be:
1. do the gradient painting
Now to prevent the default painting code from clearing the gradient background you need to use:
So now when you invoke super.paintComponent() the default background painting code will not be executed.
Rob Camick wrote:The SSCCE code should be posted in forum just like your other code.
I would expected the code to be less than 50 lines since it only has a JFrame and a JTextArea with some simple custom gradient painting.
Dave Tolls wrote:That code will occasionally fail.
It's a common mistake I've seen, but the while clause should be:
If you use the current '> 0' it is possible for the reader to pick up 0 bytes on a read (for example, something else is using the disk at the time). '0' does not mean EOF, -1 does.
Sentence: Crypto_PRP ,_, please_VB execute_VB command_NN zero_NN ._.
> Crypto, please execute command zero.