B
Brett Sheeran
I wonder if antone can tell me why the following snippit of code does not
change the text color to red.
private JTextArea jTextArea1 = new JTextArea();
....
//in jbInit
this.getContentPane().add(jTextArea1, BorderLayout.CENTER);
....
jTextArea1.setText("A whole bunch of text in here...");
jTextArea1.select(5, 15);
jTextArea1.setSelectedTextColor(Color.red);
jTextArea1.repaint();
Thanks.
Regards Brett Sheeran
change the text color to red.
private JTextArea jTextArea1 = new JTextArea();
....
//in jbInit
this.getContentPane().add(jTextArea1, BorderLayout.CENTER);
....
jTextArea1.setText("A whole bunch of text in here...");
jTextArea1.select(5, 15);
jTextArea1.setSelectedTextColor(Color.red);
jTextArea1.repaint();
Thanks.
Regards Brett Sheeran