Method getContentPane()
Return type:
java.awt.Container
Member of:
javax.swing.JFrame
[
api documentation
] [
main menu
]
Examples of how the element is used
(one line per example):
[
add your own example
]
1
this.getContentPane().removeAll();
2
this.getContentPane().removeAll();
3
this.getContentPane().add(scrollPane1, BorderLayout.CENTER);
4
getContentPane().add(_menubar, BorderLayout.NORTH);
5
getContentPane().setLayout(new BorderLayout());
6
this.getContentPane().setLayout(new BorderLayout());
7
this.getContentPane().setLayout(new BorderLayout());
8
m_frame.getContentPane().add(component, BorderLayout.CENTER);
9
parent.setContentPane(addMyself(parent.getContentPane(), placing));
10
frame.getContentPane().add(new PropertiesPanel(format));
11
frame.getContentPane().add(scrollpane, BorderLayout.CENTER);
12
frame.getContentPane().add(this);
13
this.getContentPane().add(p);
14
mainframe.getContentPane().add(logview);
15
f.getContentPane().add(createLogList());
16
contentPane = (JPanel) parent.getContentPane();
17
contentPane = (JPanel) this.getContentPane();
18
getContentPane().add(mainPanel);
19
getContentPane().add(mainPanel);
20
this.getContentPane().add(scrollPane, BorderLayout.CENTER);
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.