File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Garbage Collection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Garbage Collection" Watch "Garbage Collection" New topic
Author

Garbage Collection

Kaustubh Bansal
Greenhorn

Joined: Jan 19, 2009
Posts: 2
Is it possible for an unreferenced object to be in use?



In this code, we are adding a button to a content pane to a frame. Is this content pane eligible for garbage collection?
Daesung Park
Ranch Hand

Joined: Mar 22, 2007
Posts: 68
The content pane is not garbage-collected as long as frame is a live object.


Daesung Park

BLOG
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37939
    
  22
Kaustubh Bansal wrote:Is it possible for an unreferenced object to be in use?
Read your question very very carefully . . .
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Garbage Collection
 
Similar Threads
How to Add Scroll bars to a frame
trying to creat JFrame with buttons
Component on Image
How to add scrollbar
JTabbedPane