This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Productive Java logging | |
measure the time in ms | |
between two calls to System.out.println | |
This allow simple java code to be benchmarked. | |
Have a great day! | |
- Xerxes Rånby | |
2021 12 14 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
# This code is a NEWT JogAmp JOGL 2 port of: | |
# https://sites.google.com/site/justinscsstuff/jogl-tutorial-3 | |
# | |
# Get the latest JogAmp JOGL 2 | |
wget http://jogamp.org/deployment/jogamp-current/archive/jogamp-all-platforms.7z | |
7z x jogamp-all-platforms.7z | |
cd jogamp-all-platforms | |
# Compile this demo. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// all painting is done to this single JComponent (or subclass) | |
JComponent paintingCanvas = new JComponent() { | |
public void paintComponent(Graphics g) { | |
super.paintComponent(g); | |
// paint the scene to the Graphics object | |
} | |
}; | |
JFrame frame = // ... |