I have created a new custom class that extends from JPanel.
I generated a parameter named “type” and set, get methods.
When I add these custom panel to any other Panel , I want to set
type property in “Properties” window of custom JPanel.
But I could not.I think it must be a way to do this. What Am I mising?
Go to the Matisse Palette pane and click the menu button, this will show only one menu item, “Manage Palette…”, click it. This will bring up a palette manager window. Click the Add Widget button and then type in your custom class name. You should be able to then select your custom class and press OK. You should now be able to use your custom widget in a Matisse form and the properties should display with your “type” property.
If you still have problems after performing these steps, could you post back with more details?