| | |
Painting to screen
![]() |
Hi,
I have been trying to get a java program that draws a line directly on the screen. I have made ones that draw on JApplets and JFrame's but i cant work out how i can draw directly on the screen without having something in the way.
I looked at using Java canvasses but couldn't see a way i would do it with those so im a bit flummoxed.
Is there a way to do this in java?
I have been trying to get a java program that draws a line directly on the screen. I have made ones that draw on JApplets and JFrame's but i cant work out how i can draw directly on the screen without having something in the way.
I looked at using Java canvasses but couldn't see a way i would do it with those so im a bit flummoxed.

Is there a way to do this in java?
Make it idiot-proof, and someone will just make a better idiot
Check out my Site | and join us on IRC | Python Specific IRC
Check out my Site | and join us on IRC | Python Specific IRC
•
•
Join Date: Aug 2008
Posts: 212
Reputation:
Solved Threads: 13
0
#2 Oct 17th, 2009
If it can be done using the Win32 C++ API (On Windows), then you might be able to accomplish this using JNI (Java Native Interface), but all of the documentation is very old. I believe you can "fake" it by making the JFrame Translucent, and just drawing on it when it's like that. Here's some info about making frames translucent. Translucent Frames
Hope this helps =)
Hope this helps =)
0
#3 Oct 17th, 2009
yeah, the only problem with having transparent frames is that i would like the user to be able to click the things on the other side of the frame, so that it is not "taking up" the focus.
If that makes sense
If that makes sense
Make it idiot-proof, and someone will just make a better idiot
Check out my Site | and join us on IRC | Python Specific IRC
Check out my Site | and join us on IRC | Python Specific IRC
0
#5 Oct 18th, 2009
No worries, thanks for trying. If anyone has any other ideas i would love to know. I know you can do this in python, i thought java would have the same functionality.
Make it idiot-proof, and someone will just make a better idiot
Check out my Site | and join us on IRC | Python Specific IRC
Check out my Site | and join us on IRC | Python Specific IRC
![]() |
Similar Threads
- blue screen (Windows Software)
- Blue screen boot failure (Windows NT / 2000 / XP)
- Black Screen (Troubleshooting Dead Machines)
- Code Snippet: JME(J2ME) Splash Screen (Java)
- sample programs (C#)
- win32 get screen as it would have been (C++)
- Help With Painting in Swing (Java)
- Images Not Painting (Python)
- Flickering screen (Monitors, Displays and Video Cards)
Other Threads in the Java Forum
- Previous Thread: formatting values to 2 decimal place
- Next Thread: EmptyStackException class not found in Junit?
Views: 328 | Replies: 4
| Thread Tools | Search this Thread |
Tag cloud for Java
access actionlistener add android applet arguments array arrays binary bluetooth c++ chat class classes client code combobox component constructor convert data database db design detection eclipse error event exception file forloop game givemetehcodez graphics gui helpwithhomework homeworkassignment html ide image inheritance input integer interface j2me java javafx jframe jpanel jtextarea julia lazy linked linked-list list loop looping method methods mobile netbeans newbie number object oracle os output page parameter pattern pixel printing problem programming read recursion remote remove return robot scanner search server service set size sms sql string swing system test text text-file timer transfer translate tree user web






