本文整理了Java中javax.swing.JPanel.addContainerListener()
方法的一些代码示例,展示了JPanel.addContainerListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JPanel.addContainerListener()
方法的具体详情如下:
包路径:javax.swing.JPanel
类名称:JPanel
方法名:addContainerListener
暂无
代码示例来源:origin: robo-code/robocode
/**
* Return the robotButtons panel.
*
* @return JPanel
*/
private JPanel getRobotButtonsPanel() {
if (robotButtonsPanel == null) {
robotButtonsPanel = new JPanel();
robotButtonsPanel.setLayout(new BoxLayout(robotButtonsPanel, BoxLayout.Y_AXIS));
robotButtonsPanel.addContainerListener(eventHandler);
}
return robotButtonsPanel;
}
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@ScriptFunction(jsDoc = CONSTRUCTOR_JSDOC, params = {"orientation", "hgap", "vgap"})
public BoxPane(int aOrientation, int aHgap, int aVgap) {
super();
int axis = BoxLayout.X_AXIS;
if (aOrientation == Orientation.HORIZONTAL) {
axis = BoxLayout.X_AXIS;
} else if (aOrientation == Orientation.VERTICAL) {
axis = BoxLayout.Y_AXIS;
}
BoxLayout layout = new BoxLayout(this, axis, aHgap, aVgap);
super.setLayout(layout);
super.addContainerListener(resizer);
super.addHierarchyBoundsListener(resizer);
}
代码示例来源:origin: net.sf.ingenias/editor
main.setLayout(bl);
this.getContentPane().add(main);
main.addContainerListener(new java.awt.event.ContainerAdapter(){
public void componentAdded(java.awt.event.ContainerEvent ce){
pack();
代码示例来源:origin: org.opentcs.thirdparty.jhotdraw/jhotdraw
toolsPane.addContainerListener(containerHandler = new ContainerListener() {
代码示例来源:origin: com.github.tntim96/rhino
p1.addContainerListener(new ContainerListener() {
public void componentAdded(ContainerEvent e) {
Component thisParent = finalThis.getParent();
代码示例来源:origin: com.github.houbie/rhino-mod
p1.addContainerListener(new ContainerListener() {
public void componentAdded(ContainerEvent e) {
Component thisParent = finalThis.getParent();
代码示例来源:origin: ro.isdc.wro4j/rhino
p1.addContainerListener(new ContainerListener() {
public void componentAdded(ContainerEvent e) {
Component thisParent = finalThis.getParent();
代码示例来源:origin: org.jvnet.hudson/embedded-rhino-debugger
p1.addContainerListener(new ContainerListener() {
public void componentAdded(ContainerEvent e) {
Component thisParent = finalThis.getParent();
代码示例来源:origin: datacleaner/DataCleaner
listPanel.addContainerListener(new ContainerListener() {
内容来源于网络,如有侵权,请联系作者删除!