Forum Discussion

cauline's avatar
cauline
Contributor
8 years ago

Get the tooltip property of a cell in a Java SWT Swing Grid Control

Can anyone tell me how to get a tool tip property of a Java SWT Swing Grid control?  I can get the text value from the cell, but the Object Spy does not identify the tool tip property of a cell.

 

var row = 0;
var EmailAddCol = 0;

grid = Aliases.javaw.Shell.Composite.Composite.Composite.Composite.Composite.Composite.ContributedPartRenderer_2.Composite.JOEMainPanel.Composite.Composite.Composite.UExpandBar.UExpandItem.Composite.UTabFolder.AccountsPanel.CTabFolder.AccountSearchPanel.Composite.Composite2.AccountSearchDefaultTableComposite_1.Table;


// The following gets the text value in the cell.  I need to get the tool tip value.
var emailAddress = grid.getItem(row).getText_2(EmailAddCol).OleValue;
  • shankar_r's avatar
    shankar_r
    Community Hero

    getToolTipText()  is used to get the Tool tip text in all the Java objects. You can try it your scenario.