Change background and foreground colour with condition in source code in Java netbeans