This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes outOfMemory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "outOfMemory" Watch "outOfMemory" New topic
Author

outOfMemory

hamlin stephen
Ranch Hand

Joined: Dec 11, 2003
Posts: 45
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

Joined: Apr 05, 2000
Posts: 1449
You might try increasing the amount of memory allocated (heap size) for your JVM using the -Xms and -Xmx options.


The only reason for time is so that everything doesn't happen all at once.
- Buckaroo Banzai
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Sounds like you have a memory leak. What renderer do you use?


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
hamlin stephen
Ranch Hand

Joined: Dec 11, 2003
Posts: 45
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..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: outOfMemory