Register / Login
File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
Java Micro Edition
How to set a Background that not stretch?
posted 9 years ago
I'm trying to set a background
in a app with some code like:
Image2D backgroundImage2D = new Image2D( Image2D.RGB, backgroundImage );
In paint I paint it like:
But the problem is that the image is stretched over the screen. I would like it to stay in center and not be stretched.
So if you guys got any ideas please let me know.
Best regards<br />Fredrik
I agree. Here's the link:
How to set image as background of JTree component
Painting an image on a button
Java2D question.: How can you superimpose an image on another?
Creating a 'background'