Changed table and edit to extend JTable and JDialog

Put alot of comments trying to figure out which classes connects to
which. Created a action instead of actionlistener for the edit button
but not finished.