I've got an odd request for a Java app.
Someone wants a scrolling banner for their desktop. They want to leave
their wallpaper in place, but they want a Java app that periodically
scrolls certain text across their desktop.
So what SWT control would I use to scroll the text ? How would I
smoothly make text scroll ?
And is there a way to make containers transparent ? How about making a
shell totally transparent ? Or is there a way to use a canvas as the main
container and not use a shell ?
Thanks in advance. I hope these aren't silly questions. I am pretty new
to Java and SWT.
> I've got an odd request for a Java app.
>
> Someone wants a scrolling banner for their desktop.
....
> Thanks in advance. I hope these aren't silly questions. I am pretty new
> to Java ...
Congratulations! In your short history of involvement
in Java, you have encountered one of the thornier,
and trickier tasks for Java. Java is not well suited
to making transparent windows, and most attempts are
a kludge.
You might be able to glean some tips (or get a taste
for the saga) here..
<http://groups.google.com/group/comp.lang.java.gui/browse_frm/thread/b00948f2062e
9338/efb8c4c90c30bd16?hl=en#efb8c4c90c30bd16>
There is also some mention here of a project that had
implemented tranlucent borders on things ..
<http://groups.google.com/group/comp.lang.java.advocacy/browse_frm/thread/378ce69
e8ad8d315/4dfdec202e1bef74?hl=en#4dfdec202e1bef74>
> ...and SWT.
I have little idea about SWT - never used, but almost
guess that the same constraints apply, only much fewer
people are well versed on SWT.
Andrew T.
me2 - 09 Dec 2006 16:13 GMT
Thanks for the info, Andrew. At least I now know that it wasn't me that
didn't understand how to do this.