File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "outOfMemory" Watch "outOfMemory" New topic


hamlin stephen
Ranch Hand

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

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

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:
subject: outOfMemory
It's not a secret anymore!