Semi-transparent JTextField?

From: Allysia (alt_at_fakety.fake)
Date: 01/21/05


Date: Fri, 21 Jan 2005 21:45:15 GMT

Is there any easy way to make a JTextField semi-transparent (maybe 50%
alpha)?

I tried setting the background color to "new Color(255,255,255,70)", but
the JTextField's background pickedup all sorts of weird things, and became
less transparent with each keystroke.

Do I have to create an extension of JTextField and overload the paint()
function?

-Ally



Relevant Pages

  • Re: How to make an eraser -- need new CompositingMode?
    ... brush of the background color, set the SmoothingMode to AntiAlias and ... My background is alpha 0 (transparent). ... > create a Graphics from that Bitmap, and draw into it a path gradient fill ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Transparent Merging (Antialias problems)
    ... > Are there any kind of algorythms to get the alpha values of the foreground ... look at the alpha value and store it in some ... > background color is green or white or black or any other color as long as ... the pixels around the edges will not ...
    (comp.lang.pascal.delphi.misc)
  • Re: Alpha Channels Bitmaps
    ... deal with alpha. ... >> selection of Windows themes would not have an ugly impact on the ... >> fine if the active Windows theme has white as the background color ... >> the resource editor to include the bitmap file with alpha channel ...
    (microsoft.public.vc.mfc)