| View previous topic :: View next topic |
ven Moderator

Joined: 10 Dec 2004 Posts: 2064 Location: USA
|
Posted: 23.01.05 07:42 Post subject: Java splash screen demo with transparency |
|
|
|
I decided to post this sample code so that others don't have to suffer as much as I did trying to figure out how to do transparency directly in the host Operating system. The short answer: you can't. The long answer: it's technically possible, but extremely hard. It is also possible to simulate or "fake" transparency, by using the Java Robot class, by taking a screenshot and manipulating it to make your program "magically" appear on the screen. Of course, the problem with that is, the background will not change if something happens on the real desktop, and the fake transparency will be seen immediately. That is why the splash screen should not appear for very long. I purposely made it appear for a long time so anyone can experiment with background windows while it's running and see what happens.
The source code can be downloaded at http://www.veneficus.info/projects/programming/. No compiled version is available. |
|
| Back to top
|
|
|
deathangels Little-Fun

Joined: 19 Dec 2004 Posts: 28 Location: united states
|
Posted: 23.01.05 14:25 Post subject: |
|
|
|
maybe you could post a demo?  _________________

|
|
| Back to top
|
|
|
ven Moderator

Joined: 10 Dec 2004 Posts: 2064 Location: USA
|
Posted: 23.01.05 20:09 Post subject: |
|
|
|
The code is the demo
In case I didn't make it clear, this is Java, not JavaScript. You can't include it in your webpages, unless you make it into an applet, which would be a waste of resources. This demo is to be used in actual Java programs. |
|
| Back to top
|
|
|
deathangels Little-Fun

Joined: 19 Dec 2004 Posts: 28 Location: united states
|
Posted: 24.01.05 20:50 Post subject: |
|
|
|
oooooooooh my mistake  _________________

|
|
| Back to top
|
|
|
DanTheMan Funnilein
Joined: 11 Jul 2005 Posts: 4
|
Posted: 13.07.05 01:43 Post subject: |
|
|
|
dont u need like a compiler to write java and stuff? sry i dont know much about java except u can make games with it  |
|
| Back to top
|
|
|
ven Moderator

Joined: 10 Dec 2004 Posts: 2064 Location: USA
|
Posted: 13.07.05 02:55 Post subject: |
|
|
|
You need a compiler to compile code, not to write it
Anyway, Java is a multiplatform language, where you can write a peice of code once and it will run correctly on Windows, Linux, Mac OS, Solaris, whatever. _________________

|
|
| Back to top
|
|
|