Package java.awt.event

Examples of java.awt.event.ContainerAdapter


    {
        super(null);
   
        updateUI();

        addContainerListener(new ContainerAdapter()
        {
            @Override
            public void componentRemoved(ContainerEvent e) {
                repaint();
            }
View Full Code Here


        this.panel = c;

        // Drag Gesture
        final ToolWindowTitleBarDragGesture dragGesture = new ToolWindowTitleBarDragGesture(descriptor);
        SwingUtil.registerDragGesture(c, dragGesture);
        panel.addContainerListener(new ContainerAdapter() {
            public void componentAdded(ContainerEvent e) {
                if (e.getChild() instanceof DragGestureInitiator) {
                    DragGestureInitiator dragGestureInitiator = (DragGestureInitiator) e.getChild();
                    dragGestureInitiator.setDragGesture(dragGesture);
                }
View Full Code Here

    protected void initGlassPane() {
        final Container glassPane = (Container) ((RootPaneContainer) anchestor).getGlassPane();
        glassPane.setVisible(false);
        glassPane.setLayout(null);

        glassPane.addContainerListener(new ContainerAdapter() {
            GlassPaneMouseAdapter adapter = new GlassPaneMouseAdapter((RootPaneContainer) anchestor);

            public void componentAdded(ContainerEvent e) {
                glassPane.setVisible(true);
                if (glassPane.getComponentCount() == 1) {
View Full Code Here

        }
      }
    };
    this.ribbon.addPropertyChangeListener(this.propertyChangeListener);

    this.ribbonContainerListener = new ContainerAdapter() {
      @Override
      public void componentAdded(ContainerEvent e) {
        if (isUsingTitlePane())
          return;
        Component added = e.getComponent();
View Full Code Here

     * {@inheritDoc}
     */
    @Override
    public void install ( final E c )
    {
        containerAdapter = new ContainerAdapter ()
        {
            @Override
            public void componentAdded ( final ContainerEvent e )
            {
                if ( e.getChild () != c )
View Full Code Here

     * {@inheritDoc}
     */
    @Override
    public void install ( final E c )
    {
        containerAdapter = new ContainerAdapter ()
        {
            @Override
            public void componentAdded ( final ContainerEvent e )
            {
                if ( e.getChild () != c )
View Full Code Here

     * {@inheritDoc}
     */
    @Override
    public void install ( final E c )
    {
        containerAdapter = new ContainerAdapter ()
        {
            @Override
            public void componentAdded ( final ContainerEvent e )
            {
                if ( e.getChild () != c )
View Full Code Here

     * {@inheritDoc}
     */
    @Override
    public void install ( final E c )
    {
        containerAdapter = new ContainerAdapter ()
        {
            @Override
            public void componentAdded ( final ContainerEvent e )
            {
                if ( e.getChild () != c )
View Full Code Here

        putClientProperty ( SwingUtils.HANDLES_ENABLE_STATE, true );
        setOpaque ( false );
        setOrientation ( orientation );

        // Container listener
        addContainerListener ( new ContainerAdapter ()
        {
            @Override
            public void componentAdded ( final ContainerEvent e )
            {
                // Group added button(s)
View Full Code Here

        for (Component c : divider.getComponents()) {
            if (c instanceof JButton) {
                configureOneTouchButton((JButton) c);
            }
        }
        divider.addContainerListener(new ContainerAdapter() {

            @Override
            public void componentAdded(ContainerEvent e) {
                Component c = e.getChild();
                if (c instanceof JButton) {
View Full Code Here

TOP

Related Classes of java.awt.event.ContainerAdapter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.