Tag: jframe

Transparent JFrame using JNA

InĀ Make JFrame transparentĀ I had shown a way to making frame's transparent using AWTUtilities class. But using that class results in access restriction compile time error, resolution in Eclipse is also shown in that post. Now here is the version using java natives. I have used Java Native Access (JNA) library to call native functions to … Continue reading Transparent JFrame using JNA


Make JFrame transparent

How to create a slider for JFrame transparency and make JFrame transparent accordingly? First create a frame that has a slider in it which will be used to set transparency amount. Output of this will be: Now add a change listener to slider so we can monitor it. Now we will write our transparency logic … Continue reading Make JFrame transparent