Using the GridLayout, write a simple GUI program that allows users to type in any long message and to display the number words when the button "Count Words" is pressed. Set the window frame size to 240 by 200. The gaps
between the components on the layout are 5 px. Make the frame visible and exit on close but not resizable. Please separate the classes: one class for panel, one class for frame, and one class for the main method.
Hints: You can use "\W+" to split the text. Check the link http://stackoverflow.com/questions/9760909/split- string-with-regex-w-w-w.
1. Submit your source codes and the corresponding program outputs.
(look at attached assignment file for program example, also code attached)
Please find attached the solution.
Don't forget to leave a positive feedback along with ...
The solution uses the GridLayout, and writes a simple GUI program that allows users to type in any long message and to display the number words when the button "Count Words" is pressed. Answer format is in zip and java.