File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes frame buffering Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "frame buffering" Watch "frame buffering" New topic
Author

frame buffering

not -Mc
Greenhorn

Joined: Jul 08, 2010
Posts: 1
first i initialise the onscreen frame when the program starts and then copy the empty frame buffer



then i write all my graphics to the buffer frame in my draw() method at the end of which the buffer frame is copied to the onscreen frame.



but then if i set frame to = buffer, wont it become invisible too, so i need to reapply visibility which causes the frame to flash between visible and invisible.

I feel like i'm doing it completely wrong, any suggestions for this newb?
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Hi, welcome to the ranch ! Please check your private messages for an important administrative matter.


[My Blog]
All roads lead to JavaRanch
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19651
    
  18

buffer and frame both refer to the same JFrame object.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: frame buffering
 
Similar Threads
SAX Parsing Problem
threads for GUI and command-line
How to create a new window from a java app
Another JTable Navigation Question
gwt and frame