Adapted to the latest swing libraries changes.
Adapted to the latest library changes.