This post originated from an RSS feed registered with Java Buzz
by Vik David.
Original Post: SWT Button with Image and Text
Feed Title: The Fair And Biased Blog
Feed URL: http://blog.vikdavid.com/index.rdf
Feed Description: On Software Development and related program activities ...
Every API has its quirks. I've been working with SWT lately, converting an AWT app over. I was happy to see that the SWT Button class has a setImage method in addition to the setText. I wanted our Buttons to have an Image with a textual description that follows. Well, it didn't work. After a little googling and thumbing through my SWT Developer's Notebook, I found out that it's not possible to display both at the same time. As always, there are workarounds. As a side note, it's intriguing to...