/** * 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; }
@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); }
main.setLayout(bl); this.getContentPane().add(main); main.addContainerListener(new java.awt.event.ContainerAdapter(){ public void componentAdded(java.awt.event.ContainerEvent ce){ pack();
toolsPane.addContainerListener(containerHandler = new ContainerListener() {
p1.addContainerListener(new ContainerListener() { public void componentAdded(ContainerEvent e) { Component thisParent = finalThis.getParent();
p1.addContainerListener(new ContainerListener() { public void componentAdded(ContainerEvent e) { Component thisParent = finalThis.getParent();
p1.addContainerListener(new ContainerListener() { public void componentAdded(ContainerEvent e) { Component thisParent = finalThis.getParent();
p1.addContainerListener(new ContainerListener() { public void componentAdded(ContainerEvent e) { Component thisParent = finalThis.getParent();
listPanel.addContainerListener(new ContainerListener() {