aboutsummaryrefslogtreecommitdiffstats
path: root/demos/SwingDemos
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2001-05-09 13:21:11 +0000
committerSven Gothel <[email protected]>2001-05-09 13:21:11 +0000
commit8512ae5ab8a75fad8a75aec0b6e04e3fcd1d2c6f (patch)
tree63ba4be22892c2556ae21ac37108ab432669aa10 /demos/SwingDemos
parent7473a5ed807ed01852df6aa1bdb0634bcabd219e (diff)
2.7.2.0 swing and minor changesrel-2-7-2-0
Diffstat (limited to 'demos/SwingDemos')
-rw-r--r--demos/SwingDemos/factoryhack.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/demos/SwingDemos/factoryhack.txt b/demos/SwingDemos/factoryhack.txt
new file mode 100644
index 0000000..7f621ad
--- /dev/null
+++ b/demos/SwingDemos/factoryhack.txt
@@ -0,0 +1,16 @@
+
+ //Set up the GUI.
+ GLCapabilities caps = new GLCapabilities();
+ Canvas cvs = null;
+ GLDrawableFactory gldf = GLDrawableFactory.getFactory();
+ if(gldf instanceof SunJDK13GLDrawableFactory)
+ {
+ SunJDK13GLDrawableFactory sgldf =
+ (SunJDK13GLDrawableFactory)gldf;
+ GraphicsConfiguration grcfg =
+ sgldf.getGraphicsConfiguration(caps);
+ cvs = new Canvas (grcfg);
+ } else {
+ cvs = new Canvas ();
+ }
+ cvs.