Trying to implement canvas inside JPanel