Click here to Skip to main content
15,900,725 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello every one

I am having a project where i need to change the monitor brightness and contrast using java program . I searched in internet they all are giving solution for image and android . But My requirement is in my application i am having a text box where i enter a numeric value (brightness and contrast value) the monitor screen has to vary .

So can anybody give me some suggestion or a link to solve my problem.


Thanks in advance
Arun
Posted

1 solution

What you can not do:
Your monitor is a hardware device. Each hardware device is different. Each manufacturer is handling it different. You can not change the brightness nor the contrast of the monitor.

What you can do:
You can change the colors the displayed JAVA components of a JAVA application are shown with. A basic extension of the components does help a lot.

Painting in AWT & Swing @ java.sun.com[^]
 
Share this answer
 
Comments
arunrv 8-Dec-11 1:54am    
but my friend has done it in .net using

[DllImport("gdi32.dll")]
private unsafe static extern bool SetDeviceGammaRamp(Int32 hdc, void* ramp);

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900