naras
naras

Reputation: 63

How to add links inside combobox?

In the combobox dropdown, rather than just text content, how to add links as shown in this sample image:

sample image

Image shows edit & delete link in the dropdown along with the text content. How to implement something similar in Java using SWT?

Upvotes: 0

Views: 101

Answers (1)

Subash J
Subash J

Reputation: 2038

In existing Combo available in SWT it is not possible to add links for specific function. So the better solution is to create your own custom widgets in SWT.

Writing Portable Widgets The SWT library provides two widget classes that are typically used as the basis for a custom 100% Java portable widget:

  1. Canvas - to create basic widgets
  2. Composite - to create compound widgets

Please refer Write Your Own Widget and Developing custom widgets with SWT for creating custom widget.

Upvotes: 1

Related Questions