Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2005

Tip: Looking for answers? Try searching our database.

change wallpaper in j2me

Thread view: 
acannell@wwc.com - 17 Dec 2005 02:54 GMT
I'm wondering if there is a way to change the wallpaper from a java
program, and/or refresh the wallpaper somehow, or maybe overwrite the
wallpaper .gif or .jpg through the filesystem in order to modify the
wallpaper?
Luc The Perverse - 17 Dec 2005 04:04 GMT
> I'm wondering if there is a way to change the wallpaper from a java
> program, and/or refresh the wallpaper somehow, or maybe overwrite the
> wallpaper .gif or .jpg through the filesystem in order to modify the
> wallpaper?

Keep in mind that there is not going to be any native Java functions for
setting wallpaper since this is system specific.

All of the following is assuming you are referring to a Win32 OS:

If this is a personal project, you could just make it replace your wallpaper
file - but this would not instantly update your screen (it would need to
reboot - and sometimes Windows cache's the image somehow, making file
replacement unpredictable even across boots!)

Google searches quickly turned up Visual Basic and C++ examples.

If I were you I would create a small DLL file with a function for setting
the wallpaper from the examples of the C++ code found on the web, and then
use JNI to integrate it with Java.

--
LTP

:)
Rhino - 17 Dec 2005 04:31 GMT
>> I'm wondering if there is a way to change the wallpaper from a java
>> program, and/or refresh the wallpaper somehow, or maybe overwrite the
[quoted text clipped - 16 lines]
> the wallpaper from the examples of the C++ code found on the web, and then
> use JNI to integrate it with Java.

Uhh, J2ME is the version of Java that runs on PDAs, like the Palms and the
other devices running the PDA version of Windows....

Rhino
Luc The Perverse - 17 Dec 2005 05:00 GMT
>>> I'm wondering if there is a way to change the wallpaper from a java
>>> program, and/or refresh the wallpaper somehow, or maybe overwrite the
[quoted text clipped - 19 lines]
> Uhh, J2ME is the version of Java that runs on PDAs, like the Palms and the
> other devices running the PDA version of Windows....

Ah yes - the old "hiding part of the question in the subject line trick" :)

I have no experience in this matter :(

--
LTP

:)
Andrew Thompson - 17 Dec 2005 05:22 GMT
[snip..]
> Ah yes - the old "hiding part of the question in the subject line trick" :)

In case the OP has not already got it.

It is a good idea to repeat the subject line of your
post, probably in the first sentence of the body.

A post like this ..
<http://groups.google.com/group/comp.lang.java.programmer/msg/620dda1c935cb2b0>
..gets everybody on the 'same page', so to speak.

Signature

Andrew Thompson
physci, javasaver, 1point1c, lensescapes - athompson.info/andrew

acannell@wwc.com - 17 Dec 2005 06:01 GMT
Yes sorry about that, its for a J2ME devices, specifically a cell
phone. Basically I'm trying to write a j2me program that can run in the
background but update the screen with information without interfering
with normal cell phone operation. The phone I have cant do this
directly, but I thought if I modify the wallpaper, which is user
selectable, I could indirectly update the display while the phone is
still in "phone mode" and not "java mode".

And yes java programs can run in the background. So I was thinking I
could somehow write to the wallpaper .gif file via the filesystem and
then somehow update the wallpaper, or maybe the wall paper updates
itself every time the phone flip is opened or something, and that would
be perfect.

Asa

> [snip..]
> > Ah yes - the old "hiding part of the question in the subject line trick" :)
[quoted text clipped - 11 lines]
> Andrew Thompson
> physci, javasaver, 1point1c, lensescapes - athompson.info/andrew


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.