hi,
I have set my frame to setDefaultLookandFeelDecorated(true) with this statement.
Code:
JFrame.setDefaultLookandFeelDecorated(true);
this statement is in the main and the constructor calls the super() which is JFrame as i am extending JFrame.
In the same class i have a JOptionPane and i want it to have the same style as the main frame. I know the first parameter in constructing the JOptionPane is the frame which handles its display but i dont know how to refer to JFrame which i have set to be lookandfeeldecorted. can anyone help please ?