How to perform ticker scrolling for a styled rtf document
I am trying to scroll a text read from the .rtf document. Users want to display the text in the styled format as it is saved in the word rtf document. I am able to load the file using RTFEditorKit call and display it however how should I make the text move from left to right like stock ticker.
Any help or ideas.
Re: How to perform ticker scrolling for a styled rtf document
Like a stock ticker? You could just use a rotating buffer with fixed window size to hold the string, and use Java2D or even a simple JTextField or JLabel to render the string. Swing supports styles, as does Java2D. I'd probably go the Java2D route, since you have more control over positioning and background colors and the like.