• Post Reply Bookmark Topic Watch Topic
  • New Topic

How java graphics "interact" with the computer.  RSS feed

 
John McDave
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know there are Java graphics classes, and how to use them to draw images in a window, but how do those classes interact with the screen to create the image? At the very base of it all, what is the code that is passing the computer the data to display on its screen? I'm asking because I've seen several ways to do Graphics/GUIS, a lot of them involve the Graphics class, but what is it inside all of that that that makes it work? Also, is everything else involving graphics (any other graphics libraries people write) pretty much "on top" of the Graphics class or is there something else within it more basic that is being used?
 
Winston Gutkowski
Bartender
Posts: 10575
66
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
John McDave wrote:At the very base of it all, what is the code that is passing the computer the data to display on its screen?

Simply put: Dunno. And it's probably different on a Windows system to a Linux/Unix one (which probably uses XWindows; not sure about Windows).

I'm asking because I've seen several ways to do Graphics/GUIS, a lot of them involve the Graphics class, but what is it inside all of that that that makes it work? Also, is everything else involving graphics (any other graphics libraries people write) pretty much "on top" of the Graphics class or is there something else within it more basic that is being used?

Not being a GUI expert, I can't answer; but I suspect that you're obsessing about something that doesn't matter, or won't help you much. The whole point of Java is to provide you with an interface that is platform-independent, so what you deal with is Java classes and their methods.

Winston
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!