public StyledToolTipUI(Style style){
  this.style=style;
  border=BorderFactory.createLineBorder(style.getShadowColor());
}

public StyledToolTipUI ( Style style ) { this . style = style ; border = BorderFactory . createLineBorder ( style . getShadowColor ( ) ) ; }
create a new styledtooltipui .
