javax.swing.JPanel.addContainerListener()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(114)

本文整理了Java中javax.swing.JPanel.addContainerListener()方法的一些代码示例,展示了JPanel.addContainerListener()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JPanel.addContainerListener()方法的具体详情如下:
包路径:javax.swing.JPanel
类名称:JPanel
方法名:addContainerListener

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() {

相关文章

微信公众号

最新文章

更多

JPanel类方法