由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - in Java, how can we trigger an event when click on a Text
相关主题
How to write a VB Macro to convert text to hyperlink in Excel如何修改程序的背景,或者让同一程序有不同的title bar text?
[转载] 请问DATAGRID里的BOUNDCOLUMN HEADER可以又有TEXT又有顺便问一个CreateFile问题 (转载)
XSL question请教:VBA 的 Text IE.Document.innerText 使用
What language I should use?Could I use ant code to write a small text file ?
help on wrapHow to use Text::Unidecode from cpan in Perl?
有关SVN[合集] ofstream 无法使用binary mode的问题
auto download text from a web page请教一下text comparison software.
2个无序的text文件如何找到第一个相同的line ?C++ 初级再初级问题
相关话题的讨论汇总
话题: text话题: event话题: trigger话题: java话题: xyz
进入Programming版参与讨论
1 (共1页)
c***n
发帖数: 408
1
For example, we have a pdf file, which has different text. ABC, CDE, XYZ.
etc. These texts don't have hyperlink, just plain text.
Now we want to trigger an event when clicking on the text XYZ. Can we do
that? thanks
c***n
发帖数: 408
2
ding
p*****2
发帖数: 21240
3
问题问的有问题吧

【在 c***n 的大作中提到】
: For example, we have a pdf file, which has different text. ABC, CDE, XYZ.
: etc. These texts don't have hyperlink, just plain text.
: Now we want to trigger an event when clicking on the text XYZ. Can we do
: that? thanks

g*****g
发帖数: 34805
4
I don't know how to trigger an event on pdf text, you probably need to go
through low level mouse event and try to match the cursor position. For text
in Swing, it's much simpler, you can listen on the Swing text component.

【在 c***n 的大作中提到】
: For example, we have a pdf file, which has different text. ABC, CDE, XYZ.
: etc. These texts don't have hyperlink, just plain text.
: Now we want to trigger an event when clicking on the text XYZ. Can we do
: that? thanks

z****e
发帖数: 54598
5

你打算在pdf里面加吗?
分成两大块
1)读取pdf,以及写pdf的类库你要找一个出来
2)parse pdf里面的text,对于http://, https://, www.开头的链接parse
然后将生成的link写回原来的pdf文件
c*********e
发帖数: 16335
6
这个简单。以前做过把一世界地图的每个国家分割开,用map.比如
Planets

Sun
Mercury
Venus


【在 c***n 的大作中提到】
: For example, we have a pdf file, which has different text. ABC, CDE, XYZ.
: etc. These texts don't have hyperlink, just plain text.
: Now we want to trigger an event when clicking on the text XYZ. Can we do
: that? thanks

1 (共1页)
进入Programming版参与讨论
相关主题
C++ 初级再初级问题help on wrap
问问题C有关SVN
弱弱地问有没有这样的Text Editorauto download text from a web page
randomly generate a text file with R rows and F field in e2个无序的text文件如何找到第一个相同的line ?
How to write a VB Macro to convert text to hyperlink in Excel如何修改程序的背景,或者让同一程序有不同的title bar text?
[转载] 请问DATAGRID里的BOUNDCOLUMN HEADER可以又有TEXT又有顺便问一个CreateFile问题 (转载)
XSL question请教:VBA 的 Text IE.Document.innerText 使用
What language I should use?Could I use ant code to write a small text file ?
相关话题的讨论汇总
话题: text话题: event话题: trigger话题: java话题: xyz