Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

auto-update of editor pane ...  RSS feed

Pascal Got
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to develope something like the "tail -f" command on UNIX (which shows the lines of a file and if the file is changed, automatically picks up the new lines and display them) ina swing application with possibility to highlight the text on certain keywords.
Has someone done something like this ?
I started doing things like reading the file every seconds and refreshing my editor pane if the file size changed but :
1) it's slow (file is several Mo)
2) can't get highlight to work ...
3) how do I set up highlights of specific keywords ?
lots of questions.... I expect lots of answers ...

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!