Skip to main content

I can't draw any swing component on top of the awt Canvas

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
1 reply [Last post]
ligigan
Offline
Joined: 2012-10-02

i create transparent jtable. play video on awt Canvas . jtable is look like glass however draw on top the canvas didn't work like glass.
sorry my english bad. help me.
regards ligigan.

AttachmentSize
glass_table.png632.29 KB

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
anthony_p
Offline
Joined: 2006-07-24

Please read http://www.oracle.com/technetwork/articles/java/mixing-components-433992...

The first point of the Limitations section in this article explicitly states that JDK does not support mixing of non-opaque lightweight components. There's no workarounds.