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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T02:44:18+00:00 2026-06-10T02:44:18+00:00

So i can try and ask my problem but for your sake and my

  • 0

So i can try and ask my problem but for your sake and my sake i have created a simple image in photoshop to try to tell you what i want to achieve:

enter image description here

I have tried to work with the Opaque stuff in AWTUtilities but it does not seem to work do you guys have any idea how i can achieve this??

I do need the native windows border so i can drag and drop the window and also need the resize function.

Thanks in advance

  • 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-10T02:44:20+00:00Added an answer on June 10, 2026 at 2:44 am

    For a transparent/transuculent JFrame see here: http://docs.oracle.com/javase/tutorial/uiswing/misc/trans_shaped_windows.html which explains translucent Windows in Java.

    You need to call setOpacity().

    Here is also a small example :

    Screenshot for app

    import java.awt.*;
    import javax.swing.*;
    import static java.awt.GraphicsDevice.WindowTranslucency.*;
    
    public class TranslucentWindowDemo extends JFrame {
    
        public TranslucentWindowDemo() {
            super("TranslucentWindow");
            setLayout(new GridBagLayout());
    
            setSize(300, 200);
            setLocationRelativeTo(null);
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    
            //Add a sample button.
            add(new JButton("I am a Button"));
        }
    
        public static void main(String[] args) {
            // Determine if the GraphicsDevice supports translucency.
            GraphicsEnvironment ge =
                    GraphicsEnvironment.getLocalGraphicsEnvironment();
            GraphicsDevice gd = ge.getDefaultScreenDevice();
    
            //If translucent windows aren't supported, exit.
            if (!gd.isWindowTranslucencySupported(TRANSLUCENT)) {
                System.err.println(
                        "Translucency is not supported");
                System.exit(0);
            }
    
            JFrame.setDefaultLookAndFeelDecorated(true);
    
            // Create the GUI on the event-dispatching thread
            SwingUtilities.invokeLater(new Runnable() {
    
                @Override
                public void run() {
                    TranslucentWindowDemo tw = new TranslucentWindowDemo();
    
                    // Set the window to 55% opaque (45% translucent).
                    tw.setOpacity(0.55f);
    
                    // Display the window.
                    tw.setVisible(true);
                }
            });
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple problem but no matter what I try I can't see
i have the problem when i want to try web socket technology on my
I try to write simple application using OpenMP. Unfortunately I have problem with speedup.
I have a problem that I tried to ask about previously, but didn't get
In Java you can try to convert any String value to Integer, but when
I'm trying to handle the problem where a user can try to open, with
I try that a User can be member of several associations. To achieve this
I try to use a variable in my kshell script but can't get a
I can fix the below exception with a try-catch loop but I cannot understand
I will try to explain this the best way I can, but feel free

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.