I’m a bit frustrated that Canonical decided to use OpenJDK, even though OpenJDK still seem to have issues with some software. In my case I was trying to run PyCharm a popular Python IDE, but it wasn’t rendering properly. Lets tell Ubuntu to use Sun JDK instead:
sudo add-apt-repository "deb http://archive.canonical.com/ maverick partner"
sudo apt-get update
sudo apt-get install sun-java6-bin sun-java6-jdk sun-java6-jre
sudo update-java-alternatives -s java-6-sun
Until the next Ubuntu upgrade. :)