I am try to add one menu (View) and its items (Column names of the Jtable)
dynamically in menubar. Menu and its items are getting added properly, but
Menu (View) is not visible unless I increase the window size.

This is what I am doing
1. I am starting a thread.
2. thread is running and executing the database query.
3. Adding all the data into the JTable.
3. adding View menu in menubar
4. adding items (Names of the columns of the JTable)into the View menu

If I increase the window size then I can see View menu, otherwise its not

Anyone has idea what else I have to do.