GUI image movement in the application window

W

wanwan

I am trying to make an image slide freely in the application window,
sort of like a screensaver.

The layouts and components I find only allow things to stay stationary
.. Anyone has any suggestions for me?

Thanks
 
T

Thomas Weidenfeller

wanwan said:
I am trying to make an image slide freely in the application window,
sort of like a screensaver.

The layouts and components I find only allow things to stay stationary
. Anyone has any suggestions for me?

This is nothing you do with a layout. This is something you do with the
Java2D API on some kind of drawing area. If you use Swing that is
typically a JPanel, if you use AWT that would be Canvas.

For advanced fun one would use full-screen mode and screen buffers.

BTW, there is some java screensaver extension somewhere at java.net

/Thomas
 
A

Andrew Thompson

wanwan said:
I am trying to make an image slide freely in the application window,

What Thomas said +..
sort of like a screensaver.

Since you both mentioned it..
<http://screensavers.dev.java.net/>

Complete with several open source image slideshows, including
<https://screensavers.dev.java.net/#nice2cu>
<https://screensavers.dev.java.net/#slidersaver> * and
<https://screensavers.dev.java.net/#sszoom>

* By me, includes 'slide', 'zoom', 'fade' and 'wipe' transitions.
Yet to be included in the screensaver pack.

Andrew T.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,268
Messages
2,571,096
Members
48,773
Latest member
Kaybee

Latest Threads

Top