• Post Reply Bookmark Topic Watch Topic
  • New Topic

overlapping label - problem

 
Panda
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how do i manage overlapping labels?
that is, if i have 1 big label and 1 small label on the same spot, and the small label starts off behind the big label, how do i get get it to appear in front of the big label when i try to manipulate it from an actionlistener??
i kinda tried putting both label on a layeredpane, but when i call movetofront, it doesn't work....any suggests?
[ April 20, 2003: Message edited by: Panda ]
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Panda" -

Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy.
You can change it here.

moveToFront() moves the component to the front position of its layer. Maybe the components are on separate layers? Then you would have to do something like :


Thanks! and welcome to the JavaRanch!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!