For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Java

//Accessing the reference of the worksheet that is currently active
GridWorksheet sheet = gridweb.getWorkSheets().get(gridweb.getActiveSheetIndex());

//Adding hyperlink to the worksheet
String address = "http://www.aspose.com";
int lnkIdx = sheet.getHyperlinks().add("B1", address);
GridHyperlink lnk = sheet.getHyperlinks().get(lnkIdx);

//Setting text of the hyperlink
lnk.setTextToDisplay("Aspose");

//Setting target of the hyperlink
lnk.setTarget("_blank");

//Setting tool tip of the hyperlink
lnk.setScreenTip("Open Aspose Web Site in new window");

//Adding hyperlink to the worksheet
address = "http://www.aspose.com/community/forums/aspose.cells-product-family/19/showforum.aspx";
lnkIdx = sheet.getHyperlinks().add("B2", address);
lnk = sheet.getHyperlinks().get(lnkIdx);

//Setting text of the hyperlink
lnk.setTextToDisplay("Aspose.Grid Technical Support");

//Setting target of the hyperlink
lnk.setTarget("_parent");

//Setting tool tip of the hyperlink
lnk.setScreenTip("Open Aspose.Grid Technical Support in parent window");