By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,653 Members | 1,419 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,653 IT Pros & Developers. It's quick & easy.

Java Programming: Making Credits

P: 19
I want to make a scrolling credits screen that can be found at the end of most Games campaigns, or movies. How would I go about doing this in Java? Im thinking it would be some sort of rectangular text box that is redrawn several times to make a vertical scrolling movement, but I'm not sure how to proceed. Any ideas and advice on doing this is welcome.
Mar 8 '13 #1

✓ answered by r035198x

An animation example is provided here: http://docs.oracle.com/javase/tutori...ts/applet.html

Share this Question
Share on Google+
3 Replies


10K+
P: 13,264
An animation example is provided here: http://docs.oracle.com/javase/tutori...ts/applet.html
Mar 8 '13 #2

P: 19
I found a way to mimic a credit scroll by using a class to extend JComponent. I used a file reader to put the lines of text in the file into a string array and then overrides the paint component to paint the text in the array. I used a parallel array of integers to track the x and y positions of the text and stopped drawing the text after its y was lower than a certain number. And had the component repaint itself after a timer counted down.
Mar 31 '13 #3

10K+
P: 13,264
Ok, be sure to put the File IO operations on their own thread rather than on the EDT.
Mar 31 '13 #4

Post your reply

Sign in to post your reply or Sign up for a free account.