[Last Call] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 144
  • Last Modified:

servlet that generates buttons

I'd like a servlet that I can call like this:
    <img src="http://knowlist.com/know/buttonGenerator?text=click+for+happiness&height=15&bgcolor=559955&textColor=ffffff">

Actually, the easiest thing would be to have some simple java code that takes various parameters like the text and colors and size and style and returns the button. I could write the servlet wrapper and caching for it.

Basically, I'm tired of having to create a new image for every button and then create a new version of each button for every color scheme I use. It's a lot of busywork.
1 Solution
Mayank SAssociate Director - Product EngineeringCommented:
Not sure if you can generate buttons on the fly ;-) I guess you would need to create one image and then you can modify the image by graying it, changing colour schemes and creating new files out of them:


Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now