Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Java
  4. scrren sharing

scrren sharing

Scheduled Pinned Locked Moved Java
javatutorial
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    Haitham Aldhlaa
    wrote on last edited by
    #1

    how to make screen sharing in java

    J C 2 Replies Last reply
    0
    • H Haitham Aldhlaa

      how to make screen sharing in java

      J Offline
      J Offline
      jschell
      wrote on last edited by
      #2

      The simple answer is that you can't. Java runs an an application so it doesn't have access to the 'screen'. It is possible to share the application with another application though. One could do something with Java but it would require writing something in another language besides Java (like C++) and then have the java app interact with the C++ code. Although I suspect in such a case the java code itself might be only a small part of the overall solution.

      1 Reply Last reply
      0
      • H Haitham Aldhlaa

        how to make screen sharing in java

        C Offline
        C Offline
        chx101B
        wrote on last edited by
        #3

        I've never done this before but maybe I might be of help if I just gave you the layout. For the simplest, you could capture the screen into a PNG and stream it to the other party. Bitmaps are "heavy" when it comes to this. If you want to try it with me we can do it.

        God's life services are free of charge.

        J 1 Reply Last reply
        0
        • C chx101B

          I've never done this before but maybe I might be of help if I just gave you the layout. For the simplest, you could capture the screen into a PNG and stream it to the other party. Bitmaps are "heavy" when it comes to this. If you want to try it with me we can do it.

          God's life services are free of charge.

          J Offline
          J Offline
          jschell
          wrote on last edited by
          #4

          chx101B wrote:

          and stream it to the other party.

          I don't suspect that this would work for 'sharing'. Viewing perhaps. The problem is that the target computer would then need to analyze each picture to identify components, such as icons, windows, etc, before the target user could interact with it.

          C 1 Reply Last reply
          0
          • J jschell

            chx101B wrote:

            and stream it to the other party.

            I don't suspect that this would work for 'sharing'. Viewing perhaps. The problem is that the target computer would then need to analyze each picture to identify components, such as icons, windows, etc, before the target user could interact with it.

            C Offline
            C Offline
            chx101B
            wrote on last edited by
            #5

            Interaction is not done on the visual level. The visual level is just feedback or presentation of what is happening underneath. You'd want to stream mouse state packets containing the mouse data(i.e, location, keys pressed etc).

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups