Do you have a main() method for execution? Please post it.

BTW It's best not to give your classes the same name as a Java SE class: Frame and Panel. Add a prefix like My to make them yours.