• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Embedding components in SWT/JFace text

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I do lots of Swing programming, but no SWT/JFace programming. In a Swing text component like a JEditorPane or JTextPane, you can embed an icon or a GUI component like a JLabel or even a JTable. My Swing app depends on this capability, but I'm running into so many other problems with Swing involving things like drag-and-drop, JFileChooser, and deployment issues, that I'm starting to wonder if moving to Eclipse might be a better alternative. Of course, when you do something like this, you usually just exchange one set of problems for another. I haven't been able to find anything that addresses the question. Perhaps the reason it's not addressed is because it simply can't be done, but I just don't know. I was hoping someone could address the question. A simple yes or no would work, although any extra thoughts would be interesting, too. Thanks.
 
Steve Sinai
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I just realized my actual question got lost in my blabbering. The question is simply whether you can embed an icon or another GUI component in a SWT/JFace text component. Thanks.
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yes, you can post icon to a SWT component/widget (such as text etc.)
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic