Does anyone have any use cases in real life when someone had to make a non-trivial implementation of the Java Document interface?
Document
I am looking for descriptions of a real use case, not code examples, not tutorials.
I did a bit of work for the open source MMO known as HackWars. As part of the game, I implemented a built-in chat system that ran both inside the InternalJFrame inside the main client. I used Document along with JTextPane so that I can insert lines and use different fonts for different users in the same JTextPane.
The source of the project is available here: https://www.assembla.com/code/hackwars/git/nodes
The chat code starts here: https://www.assembla.com/code/hackwars/git/nodes/HWTomcatServer/webapps/ROOT/WEB-INF/classes/HWChat
The specific file in which I used Document was HWChat.client.chatPane, which you can see here: https://www.assembla.com/code/hackwars/git/nodes/HWTomcatServer/webapps/ROOT/WEB-INF/ classes / HWChat / client / chatPane.java p>
As part of the Java IDE, I have implemented a set of editors for the Java source code. The document handled things like balancing brackets and quotation marks and auto-indentation, and also started the incremental compilation process.
Source: https://habr.com/ru/post/1390304/More articles:Is PHP equivalent to "synchronized" for Java, or is this not required? - phpHow to use getopt_long to parse multiple arguments? - c ++Photoshop Photo Filter Math - mathDetect CSS property support only with CSS - cssSet the direction of the node on the graph - graphvizSphinx Thinking - Table-based reindexing - ruby-on-railsC ++ Inheritance Syntax - c ++Python setLevel on StreamHandler not working - pythonhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1390309/c3po-helper-threads-to-be-deadlocking&usg=ALkJrhjurnoEK3AT_HAwezL_itwcYLykAgVectorized implementation to get the index of the minimum element in each row - pythonAll Articles