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

  • Home
  • SEARCH
  • 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 8958095
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T15:08:24+00:00 2026-06-15T15:08:24+00:00

I am using RGBA for the coloring. I want the button transparent, but to

  • 0

I am using RGBA for the coloring. I want the button transparent, but to be able to set the degree of transparency, hence the alpha. Now it looks fine until I do anything that calls a repaint/paint like hover or focus. If I set opaque to false, it does make it transparent, I just don’t want this 100% transparent. It is not the image I paint in the background either. It does not have a problem with RGB, just RGBA.

these don’t work:

jButton1.setContentAreaFilled(true or false);
jButton1.setOpaque(true or false);

Here is my jButton color code:

jButton1.setBackground(new Color(255,0,0,100));

Here is what it looks like.jbutton glitch

  • 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-06-15T15:08:25+00:00Added an answer on June 15, 2026 at 3:08 pm

    Your problem looks something like this. The answers there may help you get the translucency right, but you’ll need to do it in a custom ButtonUI, illustrated here.

    Before: before

    After: after

    ButtonUI: buttonui

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to load a texture with RGBA values but the alpha values just
I know the transparency can be attained using value rgba(221, 221, 221, 0.6) .
I'm trying use make a div's background transparent using a mixture of CSS3 rgba()
Currently I'm using this box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) inset; but
I am using RGBA to create a transparent background that overlays on top of
Using javascript/jquery, I want to sort an array of rgba values to the colours
I am trying to draw a simple 256x256 pixel RGBA square using python's png
Using a populated Table Type as the source for a TSQL-Merge. I want to
Using the Redis info command, I am able to get all the stats of
http://www.campbellcustomcoatings.com/index2.php At this site, I'm using css3's box shadow and rgba for the content

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.