An off-screen buffer manager controls when the off-screen buffer is destroyed
and re-created improving system performance. A screen request is received for a
Java screen component and a determination is made whether there is already an off-screen
buffer. If there is not an off-screen buffer, a new off-screen buffer is created
and the component requesting the screen request is associated with the off-screen
buffer. If an off-screen buffer already exists, a determination is made as to whether
the off-screen buffer is large enough to handle the incoming request. If the off-screen
buffer is large enough to handle the request, the existing off-screen buffer is
used to handle the request, otherwise, the existing off-screen buffer is deleted
and a new off-screen buffer is created and the component identifier of the deleted
off-screen buffer is associated with the new off-screen buffer.