swing-app-google-search
Test task: Swing desktop app to make Google search
Prerequisites:
- Maven 3
- JDK 21
Task definition
-
Try to develop desktop application which consists of form with:
- Input field (JTextField)
button (JButton)Search- Table (JTable)
-
After press on
button we need to get result page from Google by entered into input field phrase (for example https://www.google.com/search?q=open+source for phraseSearch
)open source -
Get 10 result urls from this page and put them into table
*) If you want to avoid UI hanging - make data extraction in separate thread, not in Swing thread
**) If you want, make results in table for different phrases visually different
(results gotten by same phrase will be overwritten)
Hint: to get page from Google you could use this code from Stackoverflow
Языки
Java
- Batchfile