I don't know what should I say, There is a JFrameOne
has show
button. When I click show
Button, The New JFrame (JFrameTwo
) will show up. It works well. But the problem is, in the task bar ( the bottom of the your desktop ) , new task added. JFrameTwo
. Finally, I can see 2 tasks (JFrameOne
, JFrameTwo
) in the task bar. This is not what I'm going to do. This is abnormal I think, You know, When I click the button in Ecilpse or anything usual program, they nothing create new task in task bar. They just show frame without create any task.
So, I read some tutorials about Swing, related creating new window, People say I should use JDesktopPane+JInternalFrame or Card Layout. But, the JFrameTwo is bigger than JFrameOne. In this situation, what should I do?