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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T00:26:54+00:00 2026-06-08T00:26:54+00:00

I have built a simple interface that fills my entire JFrame. I am using

  • 0

I have built a simple interface that fills my entire JFrame. I am using a version of the class FinalGlassPane discovered on the internet here.

This glass pane has no regular event listeners, but it monitors the AWTEvents of it’s underlying components. This way there is full functionality of the interface, and I can respond to global mouse movement coordinates with a single AWTEvent handler and paint on top of everything accordingly. Everything works great, but now I need a duplicate of this functionality, each with their own coordinate space and event handlers, inside the main JFrame. I just learned about JLayeredPane, but wanted to make sure this functionality would be possible with it. IE add a completely transparent but paintable JPanel layer on top, handle the AWTEvents with it, and still have underlying events fire normally.

EDIT: I am reading about using multiple JInternalFrame (and associated glass panes) inside of a JDesktopPane. I don’t think JDesktopPane works with a layout manager, so I would have to absolutely position/resize the 2 frames when needed, but this may be the best option. END EDIT

Last thing I want to do is add mouse move listeners for every interface component and have to convert to parent panel coordinates to run the same method.

If I had to, I could keep monitoring the full glass pane mouse coordinates, and figure out how to branch the logic from there. Self contained and individualized would be better though.

And as one last caveat, I want to bring this to Android eventually, but know nothing about android graphics. If there is no layered panel functionality, I’d almost rather implement it the harder, more portable way first and once.

  • 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-08T00:26:55+00:00Added an answer on June 8, 2026 at 12:26 am

    This can be accomplished by using JXLayer or JLayer if you’re using Java 7.
    In General functionality of JXLayer/JLayer is superior to GlassPane.

    No Swing/AWT based solution will work on Android – you’d have to use Android specific component there.

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

Sidebar

Related Questions

I have built a variety of little scripts using Ruby's very simple Queue class,
I'm using Xcode 4, have a simple class interface defined and I added NSTableViewDelegate
I have built a simple menu in jQuery http://vanquish.websitewelcome.com/~toberua/ Here is a sample of
Hi I have built a simple WCF application I am using to query data
I have built a very simple blog application using Ruby on Rails. New to
I have a simple Android application that uses a JAR I have built. When
Does Python have a built-in, simple way of encoding/decoding strings using a password? Something
I have a simple table view which I have built using an example from
I have simple static lib in xcode with the only class test.h: @interface TestClass
I have built a simple TCP server and need to compare client input with

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.