System Guts(power information)
- From: MidiBot@xxxxxxxxx
- Date: 19 Mar 2006 16:22:41 -0800
Hello. I want to write a program in which the main functionality will
depend on whether or not my
computer is connected to a power adapter(this is for laptops). I looked
in the online-documentation for this and had no luck. I imagine it is
quite easy and may even be as simple as a boolean variable...?
All I want to be able to tell is whether or not my computer is being
externally powered. More specifically
I want to be able to have my program running, and be alerted if I
un-plug my power adapter.
I am using a Mac(powerbook) with java 1.4.2 if that makes any
difference.
Thank you very much.
.
- Follow-Ups:
- Re: System Guts(power information)
- From: Gordon Beaton
- Re: System Guts(power information)
- From: Thomas Weidenfeller
- Re: System Guts(power information)
- From: Roedy Green
- Re: System Guts(power information)
- Prev by Date: events for jlist
- Next by Date: Re: Passing arguments in Main - not simple
- Previous by thread: events for jlist
- Next by thread: Re: System Guts(power information)
- Index(es):
Relevant Pages
|