try using JTabbedPane