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 Swing and SWT widgets?

Custom Designer swing swt widgets
0
Posted

Can Designer use custom Swing and SWT widgets?

0

Yes. For Swing, any public JComponent subclass that has a public, zero-argument constructor can be used. 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. 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.

Related Questions

What is your question?

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

Experts123