Improve swing ui-textelement, core scanner class