Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 791067
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T21:46:35+00:00 2026-05-14T21:46:35+00:00

Is double buffering (in java) possible with awt? Currently, I’m aware that swing should

  • 0

Is double buffering (in java) possible with awt? Currently, I’m aware that swing should not be used with awt, so I can’t use BufferStrategy and whatnot (I already have some code written in awt that I don’t want to rewrite in swing).

If double buffering is possible with awt, do I have to write the buffer by hand? Unlike swing, awt doesn’t seem to have the same built-in double buffering capability.

If I do have to write the code by hand, is there a good tutorial to look at? Or is it just easier/advisable for a novice programmer to use swing instead?

Sorry about the multi-step question. Thanks for your time 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T21:46:36+00:00Added an answer on May 14, 2026 at 9:46 pm

    This is easily answered on the web. Just search for “double buffer awt” and you’ll find LOTS of examples. You can even see an old example I wrote myself in 1998 in Java 1.0 AWT. You just need to instantiate your own Graphics object and draw to an Image, then blit that image into a canvas. Here’s the key bit of code in my example:

      public void paint(Graphics g) {
        if (doubleBuffer) {
          paintSky(top.gBuf);
          g.drawImage(top.buf, 0, 0, this);
        } else {
          paintSky(g);
        }
      }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 498k
  • Answers 498k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer This should work without throwing an error. if (typeof getDataSource… May 16, 2026 at 12:09 pm
  • Editorial Team
    Editorial Team added an answer I wrote a project that did exactly what you are… May 16, 2026 at 12:09 pm
  • Editorial Team
    Editorial Team added an answer In a byte (256 possible values) you can store 5… May 16, 2026 at 12:09 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

Whats wrong with my applet code which does not render double buffering correctly.I am
Ok so my double buffer works fine but it seems that it use a
I have double number in a format like 34.123456789 . How can I change
If I have a double variable that goes through a loop and gets numbers
int main() { double i=4; printf(%d,i); return 0; } Can anybody tell me why
can anyone show how to correctly convert binary represented data into double value in
i am using java. i want to draw rectangle based on mousedrag event. if
I have a Java JApplet embedded in a web page. The JApplet window contains
I am making a game that needs a crosshair. I have been playing with
let sub (m:double[],n:double[]) : double[]= [| for i = 0 to Array.length m -1

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.