Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

outOfMemory

 
hamlin stephen
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have one JTable in my application and renderer is added with it.
but while I am resizing the table header(wiht Columns)a lot of time.. by dragging.
I am getting outOfMemory error any solution for this.?
Please help it is urgent.
[ March 06, 2006: Message edited by: hamlin stephen ]
 
John Wetherbie
Rancher
Posts: 1449
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might try increasing the amount of memory allocated (heap size) for your JVM using the -Xms and -Xmx options.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like you have a memory leak. What renderer do you use?
 
hamlin stephen
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using my own tableCellRenderer...
in paintCell()//for rendering data
method I am setting the renderer.
but when dragging the table header with mouse
the renderer object keep on increasing...
destroy() is there but not calling it..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic