473,325 Members | 2,342 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

Java Programming: Making Credits

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

3 1879
r035198x
13,262 8TB
An animation example is provided here: http://docs.oracle.com/javase/tutori...ts/applet.html
Mar 8 '13 #2
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
r035198x
13,262 8TB
Ok, be sure to put the File IO operations on their own thread rather than on the EDT.
Mar 31 '13 #4

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

Similar topics

5
by: Angela K | last post by:
I need to translate this code into java, can anyone do it? #include <iostream.h> #include "LinkedList.h" #include "mystring.h"
1
by: oshna1985 | last post by:
I have a presentation on 5th of August, 2006......so please answer my question as soon as possible.... my question is.... How is Java Programming Language Architectural neutral Distributed ...
9
by: Xbull | last post by:
I want to know how to be a programmer (the basics) for making games. PLEASE tell me how to start! Even the beginnings. PLEASE help me people! I want to know how to even use the C++ languages where...
9
by: khajeddin | last post by:
hi every one: can someone name several websites,which have good tutorial on java programming?
1
by: mshroom12 | last post by:
Hello to all. I am having difficulty trying to do this Java project using Eclipse. The following is what I have to do. Election Day It's almost election day and the election officials need a...
4
by: NickiWood | last post by:
I am in a beginners Java programming class. So far I am doing ok in the class, although there are some things that I am sure will come in time. Right now we are doing an onging project that started...
1
by: Laurynn | last post by:
Like to share this ebook here: # Ebook O'Reilly - Java Data Access JDBC, JNDI, and JAXP # (Ebook - Pdf - Java) O'Reilly - J2Me In A Nutshell - Decrypted # (ebook) - O'Reilly - Java IO #...
2
by: michaelbraganza63 | last post by:
Java is a programming language originally developed by Sun Microsystems and released in 1995 as a core component of Sun Microsystems' Java platform. The language derives much of its syntax from C and...
5
by: JavaMas | last post by:
I am a beginner in Java programming after a few lessions I was provided with this task and I have no clue how to go about it.this appears to be simple but for me is a mountain, if any one could help...
3
by: bob2044 | last post by:
Which tool should i use for starting out with java programming?
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.