Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Components brought infront of Glass Panel

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wanted to make my own sort of message boxes for a program I'm working on for both stylistic reasons and later some functional ones.

First I have it create a black JPanel and make it the glass panel so that it may be slightly transparent as well as in-front of everything. After that, I add a custom JPanel in front of that, that serves as the actual message. The problem is, when I add an object to the center of it, the object underneath it comes to the front; and by underneath, I man under the glass panel. If I add something to the top, where there's nothing under it, it has not effect. Also, I'm using BorderLayout if that makes a difference.
 
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you may have to post a working example of the problem (with steps to reproduce).
exclude everything unrelated to the problem.
 
Tom Josephits
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got rid of the components underneath until I could figure out was was wrong for finishing the code. When I added them back it was fixed. No idea what was wrong.
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic