Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using JFXPanel with seesaw #223

Open
nyrell opened this issue Apr 12, 2019 · 5 comments
Open

Using JFXPanel with seesaw #223

nyrell opened this issue Apr 12, 2019 · 5 comments

Comments

@nyrell
Copy link

nyrell commented Apr 12, 2019

I'm trying to use a JFXPanel together with Seesaw.

Since javafx.embed.swing.JFXPanel extends javax.swing.JComponent I tried to do this:

(let [jfx-panel (JFXPanel.)]
  (config! jfx-panel :id :my-id))

which gives the following error:

   Unhandled java.lang.IllegalArgumentException
   No implementation of method: :get-widget-option-map* of protocol:
   #'seesaw.widget-options/WidgetOptionProvider found for class:
   javafx.embed.swing.JFXPanel

The documentation about "Integrating Custom Widgets" says that objects that are of sub-classes of JComponent can be used with config! etc. (https://github.com/daveray/seesaw/wiki/Widgets)

Shouldn't this work or what am I doing wrong?

I'm using clojure 1.10 and seesaw 1.5.0.

@ertugrulcetin
Copy link

This is fork of seesaw that supports JFXPanel: https://github.com/ertugrulcetin/seesaw

(def fxpanel (seesaw.core/jfxpanel))

@ertugrulcetin
Copy link

ertugrulcetin commented Sep 17, 2019

@nyrell here: [new-seesaw "0.1.1"]

@nyrell
Copy link
Author

nyrell commented Sep 18, 2019

Thank you! I will look into it later on. Was there big changes needed to add the support for JFXPanel or just some minor tweak that could be added to standard seesaw too?

@ertugrulcetin
Copy link

@nyrell Minor tweak actually: ertugrulcetin@636d425

@nyrell
Copy link
Author

nyrell commented Sep 20, 2019

Sounds good, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants