title: How does JFrame work? Deep inside, how does it draw stuff?
body: <p>Typically, when I create a class, for example <code>Customer</code>, I give it some data fields, i.e. <code>public int IdNumber;</code> and some methods, i.e. <code>public String getName(){...}</code>. But that's pretty much it. I can't go beyond that and start playing with graphics - I can only manipulate and organize data as far as the class allows.</p>
  
  <p>I can't get my head around what is happening inside JFrame. Whoever wrote the class JFrame, how did they write a class that can make a box appear on screen? What is happening internally that causes this to happen? Is there anyway to emulate it?</p>
  
  <p>The same question applies to all graphics-based Java classes. I'm really curious to know how it works, as it bothers me each time I use one of them.</p>