Java scrolling text question

Status
Not open for further replies.

gumbo

Ars Tribunus Angusticlavius
6,107
I don't know of any off hand, but here is the description of a simple solution. :)

Create a JComponent, like a JLabel or JPanel.

Get the graphics for that JComponent.

Use Graphics.drawString() in a loop to move the text, printing the background color text over the previous text. This erases it.

Override paint/paintComponent in the JComponent to do the custom painting work.

gubmo
 
Status
Not open for further replies.