Search code examples
javajavabeansjform-designer

What is a non-visual bean?


Using JForm Designer I am trying to change the class of a JPanel in the properties window from JPanel to various custom classes, all of which subclass JPanel.

Sometimes it works, sometimes it fails with the message:

panel1: Can not morph non-toplevel component to non-visual bean.

What is a non-visual bean? Why are some of my subclasses recognized as visual vs. non-visual beans?


Solution

  • The JForm Designer documentation has been updated.

    It now says explicitly that Visual Beans must inherit from java.awt.Component.

    I guess that's the all of it.