Results 1 to 3 of 3
  1. #1
    AliveMyth is offline Member
    Join Date
    Feb 2009
    Posts
    1
    Rep Power
    0

    Exclamation draw on desktop without Frame

    please help me

    how to draw any shape (line2D) on desktop without frame?

    I want programming snake game, but I want do it on desktop.
    Is it possible?


    note: somebody say me that possible only in C++.

  2. #2
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Posts
    1,046
    Rep Power
    8

    Default

    I read a post recently with a trick that simulates that. You capture the desktop image, crop it, and set that as the background of the JFrame, which is undecorated. You can then draw in the JFrame. Note that the user is blocked from using that portion of their "desktop".

    Generally, I would suggest avoiding doing this sort of thing in Java...

  3. #3
    toadaly is offline Senior Member
    Join Date
    Jan 2009
    Posts
    671
    Rep Power
    6

    Default

    Years ago, I ran across a native windows look and feel that included native windows operations (only on windows of course). Something like that exists out there, which would give you window transparency.

    Without that, if you are dead set on using Java, Steve is right.

Similar Threads

  1. Deployment of JRE 6 u7 to desktop pc / Configuration
    By rrathbun in forum New To Java
    Replies: 0
    Last Post: 09-12-2008, 09:37 PM
  2. three tier Desktop Application
    By newmember in forum AWT / Swing
    Replies: 0
    Last Post: 07-27-2008, 04:10 PM
  3. Spliting desktop
    By nagarte in forum AWT / Swing
    Replies: 5
    Last Post: 05-05-2008, 01:56 PM
  4. Moving icons on your desktop
    By Leprechaun in forum New To Java
    Replies: 3
    Last Post: 12-14-2007, 11:07 AM
  5. k5n Desktop Calendar 0.9.0
    By levent in forum Java Software
    Replies: 0
    Last Post: 06-02-2007, 08:13 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •