Not getting most of the replies
But I'm able to get it to center using BorderLayout.
@Maneesh - I was not using Jpanel anywhere. I'll take a look for its functionality.
Fred Kleinschmidt wrote:You should be using a layout manager that does all this for you.
@Fred - Which layout manager does this automatically ?