JList, JMenus and CardLayout panels disappear when I use CellListRenderer
I'm writing a Contact Book in Java. It consists of a search field at the top, with a add contact button next to it. When you click on the add button, you're taken to the add contacts panel. When you click on the search field, you're taken to the panel that contains the JList of all the components.
The project is still in it's early stages and there's plenty to be done. I'm just working on the UI at the moment.
When i just use a plain jlist, everything works fine but i want a customized cells in the JList so I used a CellListRenderer. I set the renderer to the JList, and when i run the program now, the JMenu items, the JList, and the addcontact panel all disappear. I don't what's causing it.
The code is kind of long, so i've attached it so that you guys can compile it. It would look messy here.
I'd really appreciate your help.
P.S. When you launch the application, you see an empty grey window. You have to resize the window before you see the UI elements. That's another problem which I haven't figured out.