def get_render(self):
     if self.db_image is None or self.size_changed:
         size = Dimension(Component.getWidth(), Component.getHeight())
         self.set_size(size)
         Component.setPreferredSize(size)
         Component.setMinimumSize(size)
         Component.setMaximumSize(size)
         self.size_changed = False
         
         try:
             self.db_image = BufferedImage(Component.getWidth(), Component.getHeight(), BufferedImage.TYPE_INT_RGB)
         except JavaException as e:
             self.db_image = None
             System.out.println("Render Error: %s" % e)
             System.out.println("Render Error: Buffer not initialized properly")
             System.out.println("Render Error: Resolving...")
 def paint_screen(self):
     bs = Canvas.getBufferStrategy()
     if bs is None:
         Canvas.createBufferStrategy(3)
     
     g = bs.getDrawGraphics()
     g.drawImage(self.db_image, 0, 0, Component.getWidth(), Component.getHeight(), None)
     g.dispose()
     bs.show()