How would you put a scrolling message on your application with a seperate thread, sort of like an advertisment?
server_crash
64
Postaholic
Recommended Answers
Jump to PostJust like that :)
I guess it's a Swing app?
Make a JPanel, put a Timer on it which on every tick rotates the text in a StringBuffer one character (or however much) and sets it to a JLabel on that JPanel.Add the assembly to your application and …
Jump to PostIf you use a single String you may want to check your performance and memory usage.
Could get substantial as Strings are immutable and thus a new String is being created for each iteration.
All 7 Replies
jwenting
1,889
duckman
Team Colleague
server_crash
64
Postaholic
server_crash
64
Postaholic
jwenting
1,889
duckman
Team Colleague
server_crash
64
Postaholic
server_crash
64
Postaholic
jwenting
1,889
duckman
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.