Tryed new way of opening tab

Came from javaprogram on stack overflow