How to make JFrame transparent?

If you do not have any objection in using restricted API classes then you can do this with AWTUtilities class and setWindowOpacity() method of that class. Here and here is a tutorial on how to use it?

Public static void main(String args) { java.awt.EventQueue. InvokeLater(new Runnable() { public void run() { javax.swing. JFrame fr = new NewJFrame(); com.sun.awt.AWTUtilities.

SetWindowOpacity(fr,0.7f); fr. SetVisible(true); } }); } – Costis Aivalis Jul 12 at 8:51 You can post your code as answer. – Harry Joy Jul 12 at 9:08 I didn't want to do that since it is just meant to enhance your answer... Do not know how to format the code in a comment.

– Costis Aivalis Jul 12 at 9:12 Ok. Click on help link while commenting it shows formatting help. – Harry Joy Jul 12 at 9:18 Suppose you didn't want to use restricted API's, is there another way to do this?

– user489041 Jul 12 at 14:56.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions