Search code examples
javaswingjframetranslucency

make half jframe transparent using java


I am creating a JFrame Form using Netbeans .Is it possible to make transparent half portion of the JFrame and the remaining half portion as the same . If i use opacity property it applies on the full portion of the JFrame

How is possible to make some portion of the JFrame transparent using java swing.


Solution

  • you could try using a non transparent panel for the half of the frame that you don't want to be transparent and the rest you could use setOpacity();