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 6934443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:57:39+00:00 2026-05-27T11:57:39+00:00

I was wondering if it would be possible to create a window using SWT

  • 0

I was wondering if it would be possible to create a window using SWT that has either a transparent background or no background (i.e., just buttons and texts are shown floating).

I’ve tried using the setBackground() function like:

shell.setBackground(display.getSystemColor(SWT.TRANSPARENT));

but it will just show a window with a black background rather than a transparent one. any way to do this?

  • 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-27T11:57:40+00:00Added an answer on May 27, 2026 at 11:57 am

    See How to Create Translucent and Shaped Windows (Java 7+).

    Translucent window with button

    ..(SWT) uses the native window scheme, rather than an ugly/custom one. ..

    Use Swing with the native PLAF.


    Update 1

    Me.

    ..you want component (button etc.), not Window (or ancestor) transparency?

    To which you replied.

    not necessarily the component itself, but the ‘area’ in which the component resides in. if you look at the Nested Layout Example above, you see the win 7’s transparent border, then you see the normal gray background. I’d like that gray background to also be transparent.

    Window with 'per pixel' translucency

    You can create a window with per-pixel translucency, where each pixel has its own alpha value. With this feature you can, for example, create a window that fades away to nothing by defining a gradient in the alpha values.

    And as an aside, that 3rd screenshot is actually the 2nd image ripped directly from the page that is linked in the 1st sentence of my reply (the same page where I got the above quote). Did you follow the link, read the page (look at the screenshots), try the working examples?

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

Sidebar

Related Questions

I am wondering if it's possible to create a grid-like layout using div's that
I am wondering if is possible to create an XSLT stylesheet that would extract
Hey, I'm just wondering if it would be possible to convert videos to mp3
I was just wondering which would be cheaper, using a try catch block for
I am wondering if it is possible to create an application that could receive
I was wondering if it was possible to create a cookie (using jquery.cookie) which
I was wondering if it would be possible to create a C++ environment variable
Hi I was wondering if it would be possible with the GWTP, create Presenters
Wondering if it's possible to create a dynamic linq query using linq to objects.
I was wondering if it would be possible to retrieve the complete list of

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.