• Post Reply Bookmark Topic Watch Topic
  • New Topic

Over writting the setSize() method  RSS feed

 
Maja Gralewska
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

Im trying to overwrite the setSize() method because i need to dynamically set the size of a window on the browser, but it keeps throwing me the error:

The method validate() is undefined for the type MainDocumentSelectionScreen

Can anyone please tell me what this means??

[code]
public void setSize(int width, int height)
{
this.setSize(width,height);
validate();
}
[code]

Thanks
 
Tom Johnson
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It means exactly what it says, there is no method called validate() available on the "MainDocumentSelectionScreen". Is this your own class? What class are you extending (in order to overRIDE the setSize() method)??
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!