I am building one GUI with the help of JApplet. I have used this static block for setting the lookandfeel for the GUI. My problem is that when i hit the refresh button of the browser in IE Applet changes from my custom lookandfeel to java default cross platform lookandfeel. I tried placing the lookandfeel code in the init() method and the constructor also but no help. It would be nice if anybody can help me with this problem. My static lookandfeel code follows...
Thank you for your reply. I also thank you for the useful tip of not using constructor in an applet. I will remember that.
I tried putting the code in the start() method also but it created few more problems. The required lookandfeel only show when I put my code in the static block, but it doesn't keep the same lookandfeel once I refresh the page and displays the java swing lookandfeel.
I am not able to find out whats going wrong. you have pointed out about the page reload. So, should I try looking for some help on that or it might be some other issue that I should look for?