Giter VIP home page Giter VIP logo

Comments (4)

dcommander avatar dcommander commented on July 1, 2024

I don't see why not, but actually what you probably want to do is add Viewport to another component. DesktopWindow is the parent component, and Viewport does most of the work.

from turbovnc.

chaddiller avatar chaddiller commented on July 1, 2024

Thanks for the response. At first I thought Viewport always had the toolbar but found how to turn it off. I can't add the Viewport directly to another component, since it's a JFrame, but adding its content pane produced the desired result. It does involve the Viewport frame popping up, stealing its components, and then setting it not visible.

Another stumbling point is accessing the objects. Constructing a Viewport directly doesn't seem feasible since CConn needs VncViewer. To test, I added a way to access CConn from VncViewer and got the Viewport from CConn. CConn, in most places, could use a generic Container versus the VncViewer type. Maybe it could be refactored some to allow any container to be passed in?

Edit: I made some updates that allow you to pass a container into VncViewer(). It's more of a proof of concept at this point.
chaddiller/turbovnc@fe29083b4d1461fb66380d415dce08c5991c594b

from turbovnc.

dcommander avatar dcommander commented on July 1, 2024

I have customers who are doing similar things (embedding Viewport into their own components), so something similar to your approach might be useful in the long term. Keep me posted if you get it past the proof-of-concept stage.

from turbovnc.

dcommander avatar dcommander commented on July 1, 2024

Closing as WNF, because the customer who might have had a need for this no longer does. Thus, it's not something that will likely happen without specific project funding or code contributions.

from turbovnc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.