Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Embedding components in SWT/JFace text  RSS feed

 
Steve Sinai
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
anand vijay
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes, you can post icon to a SWT component/widget (such as text etc.)
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!