Code: Select all
public void paint(Graphics g) {
//draw a black border and a white background
g.setColor(Color.white);
g.fillRect(0, 0, getSize().width - 1, getSize().height - 1);
g.setColor(Color.black);
g.drawRect(0, 0, getSize().width - 1, getSize().height - 1);
etc...
Code: Select all
public void paint(Graphics g) {
//draw a black border and a white background
g.setColor(Color.white);
g.fillRect(0, 0, getSize().width - 1, getSize().height - 1);
g.setColor(Color.black);
g.drawRect(0, 0, getSize().width - 1, getSize().height - 1);
etc...
Furthermore, in some cases TextPad shows tabs and in others spaces, arbitrarily (it seems).
Last but not least, I have tried opening the java source files with the 'Maintain indentation' and 'Automatically indent blocks' options both enabled and disabled for Java documents, but it doesn't fix the annoyance in any form.
I would like to know how can I solve this problem.