项目作者: andrei-punko

项目描述 :
Desktop application with ability to make search using Google (Test task)
高级语言: Java
项目地址: git://github.com/andrei-punko/swing-app-search-test-task.git
创建时间: 2021-02-13T08:48:50Z
项目社区:https://github.com/andrei-punko/swing-app-search-test-task

开源协议:MIT License

下载


Test task: Swing desktop app to make Google search

Java CI with Maven
Coverage
Branches

Prerequisites:

  • Maven 3
  • JDK 21

Task definition

  1. Try to develop desktop application which consists of form with:

    • Input field (JTextField)
    • Search button (JButton)
    • Table (JTable)
  2. After press on Search 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 phrase open source)

  3. 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