Results 1 to 3 of 3
- 11-19-2007, 07:32 PM #1
Member
- Join Date
- Nov 2007
- Posts
- 3
- Rep Power
- 0
Canvas rendered over JCombobox menu
Hello everyone,
I've been googling and asking for help for a while, but no success.
I've got a Canvas where some stuff is drawn, and a few buttons and comboboxes next to it, lined in a row under the drawing area. When I click on any of the comboboxes, part of the drop-down menu has to be rendered over canvas, but it is always behind it:
http://img69.imageshack.us/img69/3017/15605599kh6.gif
Why does this happen, and what can I do?
tnx in advance
- 11-19-2007, 07:43 PM #2
Canvas is an AWT, heavyweight component. J–prefix components are Swing, lightweight components. Heavyweight components get rendered on top of/over/above lightweight components and obscure them. Although you can mix them there are some things to be aware of in doing so. For a discussion of this see Mixing heavy and light components.
If you choose to stick with Swing you could replace the Canvas with a JPanel.
- 11-19-2007, 08:00 PM #3
Member
- Join Date
- Nov 2007
- Posts
- 3
- Rep Power
- 0
Similar Threads
-
how to create Popup Menu with Sub Menu while right-clicking the JTree Node??
By Kabiraa in forum AWT / SwingReplies: 7Last Post: 05-09-2008, 07:54 AM -
Calling displayable from a canvas class
By Snalk in forum CLDC and MIDPReplies: 0Last Post: 03-28-2008, 11:58 PM -
Using SWT Canvas
By Java Tip in forum Java TipReplies: 0Last Post: 01-08-2008, 09:06 AM -
Canvas question
By christina in forum Advanced JavaReplies: 1Last Post: 08-03-2007, 07:21 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks