Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can Designer use custom widgets?

Custom Designer widgets
0
Posted

Can Designer use custom widgets?

0

Yes., with a few restrictions. For Swing, any public JComponent subclass that has a public, zero-argument constructor can be used (as required by the Java Bean spec). Custom properties are derived through reflection by looking for getter/setter pairs of known types. If a matching JavaBean class is defined and available, it will be used for any custom properties. Custom JPanel subclasses will show their subcomponents when placed in Designer. For SWT, any public Control subclass that has a public, two-argument constructor can be used (as is standard for all base SWT widgets). Custom properties are derived through reflection by looking for getter/setter pairs of known types. SWT does not yet define any kind of JavaBean interface, so no further customization is available. Custom Composite subclasses will show their subcomponents when placed in Designer. For GWT, any public Widget subclass that has a public, zero-argument constructor can be used (as is standard for all base GWT widgets). Cu

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.