Created JFrame inside Window class - it no longer extends JFrame.
Created a class for error messages.