swing contentpane理解
对JFrame而言,它默认的布局是BorderLayout()。
即它分为north、south、west、east、center。
此时我们可以新建一个panel,起名叫panel1,然后将其设置成borderLayout()。
然后可以分别在north、south、west、east、center放入5个子panel.
那么此时,这个panel1就相当于contentPane的意思。
所以contentpane不是指center.
?