Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 964823
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T01:53:36+00:00 2026-05-16T01:53:36+00:00

I am generating some images using the Graphics2D interface, and occasionally I’d like to

  • 0

I am generating some images using the Graphics2D interface, and occasionally I’d like to be able to draw some text on the image and apply to it effects like the ones in Adobe Photoshop.

Right now to generate a ‘shadow’ on the text I am drawing the text twice, once in the original color, and once in black with a slight (1px) x&y offset. Unfortunately this is overly simplistic as I need more control over the shadow (opacity,size, spread).

As for Inner Glows and Outer Glows, I am not really sure where to start; a mask/gradient paint/alpha blending?

Is there a Java library for producing these types of effects? If not how would you go about creating these effects?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T01:53:36+00:00Added an answer on May 16, 2026 at 1:53 am

    I would highly recommend the book Filthy Rich Clients. Chapter 16 talks about drop shadows. You also might be interested in the this blog post. Chapter 17 talks about the glowing effect. There is example code on the website for both. The rest of the book is well worth reading as well. I couldn’t put the book down when I read it. There are many other fun effects explained and demonstrated in the book.

    The jhlabs site is also a good site, as mentioned.

    Edit:

    For a library, I would look at Painters in the SwingX library. Here are several tutorials:

    • http://weblogs.java.net/blog/2006/09/20/introducing-painters
    • http://www.curious-creature.org/2006/03/24/swingx-painters-demo/
    • http://www.jroller.com/gfx/entry/advanced_swingx_painters_demo
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm generating some XML documents and when it comes to the address part I
I'm generating some xml files that needs to conform to an xsd file that
Thanks for reading this. I am dynamically generating some data which includes a select
While generating charts using RS 2008 betas, RC0 and such., I never specified any
I'm generating ICalendar (.ics) files. Using the UID and SEQUENCE fields I can update
I am automating some profiling tasks and want to log heap space and generation
When generating graphs and showing different sets of data it usually a good idea
I'm currently generating an 8-character pseudo-random uppercase string for A .. Z: value =
I'm generating a self-signed SSL certificate to protect my server's admin section, and I
I'm generating a ton of XML that is to be passed to an API

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.