Change Word class to extend JPanel
Change Word class to extend JPanel

Due to this, the getWidth method becomes unnecessary because:
1. It overrides the getWidth method of JPanel
2. The total width of the JPanel is always the sum of the Letters

NigoroJr/typebest