Help coderanch get a
new server
by contributing to the fundraiser
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

overlapping components

 
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have a bean containing a JTabbed Pane and some JButtons. Because of the way they are positioned, only the top half of the buttons can be pressed ... it's as if they are 'underneath' the JTabbed pane. Can I make them come to the front ?
Kate
 
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Kate,
I don't exactly know what you did. If you have a JTabbedPane and a JPanel containing buttons on another Panel then you need to specify some layout for the underlying Panel. That would stop the overlapping situation that you are encountering. If you don't want to do that then you need to specify the location of the button panel (or every button) and the tabbed pane so that they don't overlap (because you have a null layout).
Regards,
Manfred.
 
kate damond
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, thanks for the reply ..
I use a null layout manager for development.
It's not a question of how do I position the components so they don't overlap, I can easily reposition compnents. What I want to do is make best use of the screen real-estate, by putting buttons in the area of wasted space at the top of the JTabbedPane (because my four tabs don't fully occupy their rectangle) So, I wanted to know if I can control the behaviour of components on overlap.
Kate
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Kate,
IMO, I don't think you can ... last one drawn wins.
Regards,
Manfred.
 
kate damond
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ah - ok thanks,
just to be cheesy I'll try redrawing them in the opposite order !!
Cheers,
Kate
 
eat bricks! HA! And here's another one! And a tiny ad!
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic