Skip to content

Using JFXPanel with seesaw #223

Description

@nyrell

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions