Hi all, I just wanted to discuss a few issues about GUI here... I am using JFrame as my MainFrame and have two JPanels, one for selecting the aiports and another for displaying the flight details according to the selected airports and add relative panels according. What I found is the refrsh is not proper, that is, after adding panel1, if the user clicks on 'get details' button and I add panel2(details) I still can see the panel1(some parts) and if I minimise the window and maximise it again I see panel1 fully. How do I get rid of this. I use MainFrame.setVisible(true) to show the second panel. Is that wrong? Should I use a different way. Where can I find related info? First of all, is this approach ok? Thanx Latha.