public ButtonBubble(Window owner,String nextDockableKey,AlignedSide preferredAlignment,String i18nKey,String buttonKeyToAttach,boolean addListener,boolean listenToPerspective,JButton[] buttonsToAdd,Object... arguments){
  super(owner,preferredAlignment,i18nKey,nextDockableKey,buttonsToAdd,arguments);
  if (preferredAlignment != AlignedSide.MIDDLE) {
    this.buttonKey=buttonKeyToAttach;
    this.addListener=addListener;
    if (buttonKey == null || buttonKey.equals("")) {
      throw new IllegalArgumentException("key of the Button can not be null if the Alignment is not MIDDLE");
    }
 else {
      this.button=BubbleWindow.findButton(buttonKey,owner);
    }
  }
  setAddPerspectiveListener(listenToPerspective);
  super.paint(false);
}

public ButtonBubble ( Window owner , String nextDockableKey , AlignedSide preferredAlignment , String i18nKey , String buttonKeyToAttach , boolean addListener , boolean listenToPerspective , JButton [ ] buttonsToAdd , Object ... arguments ) { super ( owner , preferredAlignment , i18nKey , nextDockableKey , buttonsToAdd , arguments ) ; if ( preferredAlignment != AlignedSide . MIDDLE ) { this . buttonKey = buttonKeyToAttach ; this . addListener = addListener ; if ( buttonKey == null || buttonKey . equals ( "" ) ) { throw new IllegalArgumentException ( "key of the Button can not be null if the Alignment is not MIDDLE" ) ; } else { this . button = BubbleWindow . findButton ( buttonKey , owner ) ; } } setAddPerspectiveListener ( listenToPerspective ) ; super . paint ( false ) ; }
creates a bubble which points to a button .
