How Swing Code Turns Into a Real Graphic Application

This question may not seem very technical, but, out of curiosity, I want to know that:

How does the bare / raw Swing code written by me turn into a great graphics application?

For instance:

  • Similar to how we make a JFrame visible or when we place a JButton on it. Who is doing this? OS or Java or JVM.

  • Who makes the colors sneak?

  • What is the process going on behind the scenes?

I ask about this, perhaps because for the first time in my life I made a graphical application RealWorld, and these questions arose in my head!

Thanks in advance!

+5
source share
3 answers

Swing GUI Java Java. , JButtons Java, - . , Swing " ", Java, ( ).

, Java , AWT. Swing AWT, , .

, - Swing . , , AWT. , JFrame java.awt.Frame, , JFrame Java, OS-.

+5

, AWT, , . JVM. java2d. directx opengl-.

. Swing Java. , , . , - .

Nimus LaF 100% java2d, , drawRectangle drawLine . , windows, gtk, , - . .

gui java, SWT, , , Eclipse. , AWT, 100% . , , , . os, Swing.

+1

I do not know all the details, but the actual graphics are displayed / displayed through swing / awt packages through the JVM.

0
source

All Articles