Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Creating an email-recipient like widget(a widget with multiple buttons that can switch to text mode)
Creating an email-recipient like widget [message #673748] Tue, 24 May 2011 15:52
Niklas  is currently offline Niklas Friend
Messages: 1
Registered: May 2011
Junior Member

I am fairly new to SWT development but I have a very specific kind of widget in mind and wondering how to best implement this using the SWT.

The widget is similar to the widgets you will see in some email applications when entering the recipients. So in the beginning there should be just a text input field in which the user can type in some text. In this case the text will be a class or method name. Once entering a whitespace character such as enter, tab or space the text should be replaced by the widget, which should look something like this:


The Star and the "X" should be clickable with the Star having a toggle semantic and the X beeing used to delete the widget.

The user should then be able to edit the widget by doubleclicking on the name and changing the text like this:



Could you give any advise to me on how to go about implementing this?
Should I try to customize a Button and replace it with a Text widget when necessary? How do I get such fine-grained control over the appearance?

  • Attachment: forum1.png
    (Size: 7.78KB, Downloaded 724 times)
  • Attachment: forum2.png
    (Size: 12.40KB, Downloaded 692 times)
  • Attachment: forum3.png
    (Size: 20.56KB, Downloaded 657 times)
  • Attachment: forum4.png
    (Size: 18.50KB, Downloaded 738 times)
  • Attachment: forum5.png
    (Size: 20.82KB, Downloaded 667 times)

[Updated on: Tue, 24 May 2011 15:56]

Report message to a moderator

Previous Topic:High contrast mode setting for textbox in a jface dialog
Next Topic:Problem with SWT Text
Goto Forum:

Current Time: Tue Jan 26 10:06:44 GMT 2021

Powered by FUDForum. Page generated in 0.01857 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top