This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Richards Milan wrote:HI kemal >> I had used frame.setVisible(true); in my program but forgot to copy it while posting >> can you suggest something else ?
I see you used it, it is in the code you posted. You should just move it to be the last statement in your code. Another approach is to invoke frame.revalidate() also as the last statement, but I would suggest you do the first one.