That file is a slightly modified version of Sun's JTabbedPane demo class. I just added your code to print out the current selected tab upon selection. It's a fully working example so you can just run ...
当前正在显示可能无法访问的结果。
隐藏无法访问的结果当前正在显示可能无法访问的结果。
隐藏无法访问的结果