Implemented fully the frame widget.