javaswingjpaneltoolkit

What does "Toolkit.getDefaultToolkit().sync()" mean?


I got three rather small questions so I'd like to ask them all in one thread here.

1- What does Toolkit.getDefaultToolkit().sync() mean?

2- What does g.dispose() do? (g is a Graphics object).

3- What does this: setDoubleBuffered(true) mean?

All of the above happen in a class extending JPanel.

Thanks


Solution


  • Follow the links. You really need to learn how to search and read documentation.

    Here's a link to the Documentation homepage. Anytime you need to ask a question like this, go to this page first, and search.