35 |
obligated to do so. If you do not wish to do so, delete this |
obligated to do so. If you do not wish to do so, delete this |
36 |
exception statement from your version. */ |
exception statement from your version. */ |
37 |
|
|
38 |
|
|
39 |
package javax.swing; |
package javax.swing; |
40 |
|
|
41 |
import java.awt.BorderLayout; |
import java.awt.BorderLayout; |
45 |
import java.awt.LayoutManager; |
import java.awt.LayoutManager; |
46 |
import java.awt.LayoutManager2; |
import java.awt.LayoutManager2; |
47 |
import java.io.Serializable; |
import java.io.Serializable; |
48 |
|
|
49 |
import javax.accessibility.AccessibleRole; |
import javax.accessibility.AccessibleRole; |
50 |
import javax.swing.plaf.RootPaneUI; |
import javax.swing.plaf.RootPaneUI; |
51 |
|
|
|
|
|
52 |
/** |
/** |
53 |
* This class is where JComponents are added to. Unlike awt where you could |
* This class is where JComponents are added to. Unlike awt where you could |
54 |
* just say frame.add(), with swing you need to say frame.getRootPane() |
* just say frame.add(), with swing you need to say frame.getRootPane() |
482 |
* |
* |
483 |
* @return DOCUMENT ME! |
* @return DOCUMENT ME! |
484 |
*/ |
*/ |
485 |
protected JComponent createContentPane() |
protected Container createContentPane() |
486 |
{ |
{ |
487 |
JPanel p = new JPanel(); |
JPanel p = new JPanel(); |
488 |
p.setName(this.getName() + ".contentPane"); |
p.setName(this.getName() + ".contentPane"); |