What do i use in place of dispose()

Apparently dispose() is deprecated (i'm using it in my JFrame), for some reason its not building the project because of it (i'm using Linux now and didn't have the problem on windows). Or if you dont know and dont mind telling me how to make it still build the project sucessfully, that will hold me off. Thanks.
[329 byte] By [sduffy89] at [2007-11-19 10:21:43]
# 1 Re: What do i use in place of dispose()
what version of java are you using, to say that dispose() is deprecated? i cant find any deprected references in the 1.5.0 api
cjard at 2007-11-10 2:23:12 >