migration from jlabel to graphics