02-25-2010 03:38 AM
Hi,
I am new to this forum and also new to java development for blackberrys.
I have a source .java files from an application that I want to adapt. After I import these files from zip-archive into a new blackberry project an error and a warning come up. As normally this application already works I do not know why this happens...
error: "the method getRowHeight() in the type ListField is not applicable for the arguments (int)
code where error is: int h = getRowHeight(index)-1;
warning: the Field DirectoryExplorerScreen.DirHandle._displayPath is never read locally
code where warning is: private string _displayPath; -> is in private class DirHandle...
I hope you would understand my problem, otherwise please tell me if more information is needed (I work with Blackberry Plug-in for Eclipse with component package 4.5)
thank you!
02-25-2010 03:54 AM
Hi,
regarding your error,
getRowHeight() in class ListField do not take integer as its arugement, so instead of using getRowHeight(index) ,just use getRowHeight(), it will solve your problem.
Please let me know if you have any more queries.
02-25-2010 04:26 AM
just to add to Rajat,
there is setRowHeight(), which takes integer val as input.
list.setRowHeight(yourHeight);
02-25-2010 06:36 AM