Visual execution of generic Java programs