east75th | Sat, 07 Jul 2007 02:40:00 GMT |
I found a page on the web for the book.
http://developer.java.sun.com/developer/Books/2dgraphics/
Unfortunately the new .jar does not fix the problem we are having. I am on Windows 2000. What are you using? What gets me steamed is that the readme.txt in the updated .jar has two of the author's email addresses. But when I try to send him a email it gets rejected on both of them. The error is "unknown user". How unhelpfull can one get? It's one thing to not help me debug my own code, which I am sure so people have tried to get Vincent to do, but it another thing entirely to ask him to fix his own bugs.
proubekas | Sat, 07 Jul 2007 02:40:00 GMT |
Are you referring to the OS? I'm using WinME.
Because it's the only learning resource for 2D graphics, you'd think Sun would have posted a fix long ago.
What irks me about the 2D support is that it's weak on operating on the individual color channels (LookupOp.filter() works only on all three) and the few types of graphics files (jpg and GIF only) supported.
east75th | Sat, 07 Jul 2007 02:40:00 GMT |
johnjsmith | Sat, 07 Jul 2007 02:40:00 GMT |
John J. Smith
Would you be willing to post the fix to this thread? Maybe, just maybe, I can compare what Vincent sent you, and what is on the CD, and the Web updates, and try to figure out what fix Vincent was trying to implement. If I can figure that out, maybe I can find where the fix goes wrong and fix the fix! I would then post it in this thread for the good of all.
TIA
proubekas | Sat, 07 Jul 2007 02:40:00 GMT |
No problem. Here's what Vincent sent me (demorunner.bat):
java -classpath .;c:\glf\glf.jar DemoRunner
demos.properties
================
script.Windows_2000=runsnippet.bat
script.Windows_NT=runsnippet.bat
script.Windows_95=runsnippet.bat
script.Windows_98=runsnippet.bat
script.Windows_Me=runsnippet.bat
script.Windows_XP=runsnippet.bat
All_Demos=Part_I Part_II Part_III
Part_I=Chapter_01 Chapter_02 Chapter_03 Chapter_04 Chapter_05
Chapter_01=HelloRenderingModel
Chapter_02=ShapeRendering SimpleTextRendering SimpleTextLayoutRendering
ImageLoad FontAttribute CompositeAttribute AffineTransformAttribute
StrokeAttribute PaintAttribute RenderingHintsAttribute ClipAttribute
Chapter_03=ScreenRendering PrinterRendering OffscreenBufferRendering
Chapter_04=ShapeUsage ShapeClasses DukeShapeDemo CMYKSave ImageFilters
StyledTextRendering JustifiedTextBlock CustomGlyphLayout
Chapter_05=AffineTransformTypes BasicStrokeControls PaintTypes
ColorTransparency TexturePaintControls FontLister FontFlip
AlphaCompositeRules ClippingUsage
Part_II=Chapter_06 Chapter_07 Chapter_08 Chapter_09
Chapter_06=HelloLayers
Chapter_07=UsingLayers LayerMarginsUsage AnchorPlacement
AdjustedAnchorPlacement AnchorPlacementTransform EiffelFill EiffelStroke
EiffelComposite TextLayerControls ImagePlacement HelloLayersReuse
CombiningLayers
Chapter_08=UsingCompositionComponent
Chapter_09=GradientPaintExtUsage RadialGradientPaintUsage
RadialGradientPaintExtUsage CompositeStrokeUsage ControlStrokeUsage
ShapeStrokeUsage WaveStrokeUsage TextStrokeUsage ColorCompositeUsage
LightOpUsage1 LightOpUsage2 LightOpUsage3 SpotLightUsage LightOpUsage4
ElevationMapUsage LightOpUsage5 GetSunLightUsage GetSpotLightUsage
GetLightRampUsage GetHotSpotLightRampUsage ToneAdjustmentOpUsage
WaveTransformUsage BumpTransformUsage
Part_III=Chapter_11 Chapter_12 Chapter_13 Chapter_14 Chapter_15
Chapter_16 Chapter_17
Chapter_11=ImageDropShadowComposition ShadowsComposition
ShapeCastShadowComposition TextRecessedShadowComposition
Chapter_12=BacklitGlowMenuComposition BacklitGlowMenuCompositionOff
NeonGlowMenuComposition NeonGlowMenuCompositionCold
Chapter_13=LightPaintingComposition
Chapter_14=CircularLayoutComposition TriangularLayoutComposition
ShapeLayoutComposition GlyphDecorationComposition
Chapter_15=PostCardComposition
Chapter_16=BarComposition CylinderComposition SphereComposition
VolumeComposition
Chapter_17=BrushedMetal RecessedShadow ShadowStandOut GLFWebDemoTwo
GLFWebDemoOne TextFlowers SoftFocus SunSet ShapeSplatter LookupParts
Lights
AffineTransformAttribute.exec=imageSnippet
AffineTransformTypes.exec=noArguments
AlphaCompositeRules.exec=noArguments
BasicStrokeControls.exec=noArguments
ClipAttribute.exec=noArguments
ClippingUsage.exec=imageSnippet
CMYKSave.exec=cmykSave
CMYKSave.params=vango09CMYK.jpg true
ColorTransparency.exec=colorTransparency
CompositeAttribute.exec=imageSnippet
CustomGlyphLayout.exec=glyphLayoutSnippet
DukeShapeDemo.exec=noArguments
FontAttribute.exec=noArguments
FontFlip.exec=noArguments
FontLister.exec=noArguments
FontTransform.exec=noArguments
HelloRenderingModel.exec=noArguments
ImageFilters.exec=imageSnippet
ImageLoad.exec=imageSnippet
JustifiedTextBlock.exec=textBlock
OffscreenBufferRendering.exec=offscreenSnippet
OffscreenBufferRendering.params=vangoWithBorder.jpg
PaintAttribute.exec=noArguments
PaintTypes.exec=imageSnippet
PrinterRendering.exec=imageSnippet
RenderingHintsAttribute.exec=noArguments
ScreenRendering.exec=imageSnippet
ShapeClasses.exec=noArguments
ShapeRendering.exec=noArguments
ShapeUsage.exec=noArguments
SimpleTextLayoutRendering.exec=noArguments
SimpleTextRendering.exec=noArguments
StrokeAttribute.exec=noArguments
StyledTextRendering.exec=fontSnippet
TexturePaintControls.exec=textureSnippet
rem
rem Part II code samples
rem
rem Chapter 1
HelloLayers.exec=compositionFactory
rem Chapter 2
UsingLayers.exec=textCompositionFactory
LayerMarginsUsage.exec=compositionFactory
AnchorPlacement.exec=anchorPlacement
AdjustedAnchorPlacement.exec=anchorPlacement
AnchorPlacementTransform.exec=anchorPlacement
EiffelFill.exec=noArguments
EiffelStroke.exec=noArguments
EiffelComposite.exec=noArguments
TextLayerControls.exec=textCompositionFactory
ImagePlacement.exec=textCompositionFactory
HelloLayersReuse.exec=compositionFactory
CombiningLayers.exec=textCompositionFactory
rem Chapter 3
UsingCompositionComponent.exec=noArguments
rem Chapter 4
GradientPaintExtUsage.exec=noArguments
RadialGradientPaintUsage.exec=noArguments
RadialGradientPaintExtUsage.exec=noArguments
CompositeStrokeUsage.exec=noArguments
ControlStrokeUsage.exec=noArguments
ShapeStrokeUsage.exec=noArguments
WaveStrokeUsage.exec=noArguments
TextStrokeUsage.exec=noArguments
ColorCompositeUsage.exec=colorCompositeUsage
LightOpUsage1.exec=imageSnippet
LightOpUsage2.exec=imageSnippet
LightOpUsage3.exec=lightOpUsage3
SpotLightUsage.exec=compositionFactory
LightOpUsage4.exec=lightOpUsage4
ElevationMapUsage.exec=textCompositionFactory
LightOpUsage5.exec=lightOpUsage5
GetSunLightUsage.exec=textCompositionFactory
GetSpotLightUsage.exec=textCompositionFactory
GetLightRampUsage.exec=textCompositionFactory
GetHotSpotLightRampUsage.exec=textCompositionFactory
ToneAdjustmentOpUsage.exec=textCompositionFactory
WaveTransformUsage.exec=noArguments
BumpTransformUsage.exec=noArguments
rem
rem Part III code samples
rem
rem Chapter 2
ImageDropShadowComposition.exec=ch2TextCompositionFactory
ShadowsComposition.exec=ch2TextCompositionFactory
ShapeCastShadowComposition.exec=ch2TextCompositionFactory
TextRecessedShadowComposition.exec=ch2TextCompositionFactory
rem Chapter 3
BacklitGlowMenuComposition.exec=ch3TextCompositionFactory
BacklitGlowMenuCompositionOff.exec=ch3TextCompositionFactory
NeonGlowMenuComposition.exec=ch3TextCompositionFactory
NeonGlowMenuCompositionCold.exec=ch3TextCompositionFactory
rem Chapter 4
LightPaintingComposition.exec=ch4TextCompositionFactory
rem Chapter 5
CircularLayoutComposition.exec=ch5TextCompositionFactory
TriangularLayoutComposition.exec=ch5TextCompositionFactory
ShapeLayoutComposition.exec=ch5TextCompositionFactory
GlyphDecorationComposition.exec=ch5TextCompositionFactory
rem Chapter 6
PostCardComposition.exec=ch6TextCompositionFactory
rem Chapter 7
BarComposition.exec=ch7TextCompositionFactory
CylinderComposition.exec=ch7TextCompositionFactory
SphereComposition.exec=ch7TextCompositionFactory
VolumeComposition.exec=ch7TextCompositionFactory
noArguments=java -Dcom.sun.glf.getAllFonts=true
com.sun.glf.snippets.%SNIPPET%
offscreenSnippet=java -Dcom.sun.glf.getAllFonts=true
com.sun.glf.snippets.%SNIPPET% res/images/snippets/vango09.jpg %2%
imageSnippet=java -Dcom.sun.glf.getAllFonts=true
com.sun.glf.snippets.%SNIPPET% res/images/snippets/vango09.jpg
textureSnippet=java -Dcom.sun.glf.getAllFonts=true
com.sun.glf.snippets.%SNIPPET% res/images/snippets/texture.jpg
colorTransparency=java -Dcom.sun.glf.getAllFonts=true
com.sun.glf.snippets.%SNIPPET% res/images/snippets/syberia30.jpg
cmykSave=java -Dcom.sun.glf.getAllFonts=true
com.sun.glf.snippets.CMYKSave res/misc/cmyk.pf
res/images/snippets/vango09.jpg %2% true
fontSnippet=java -Dcom.sun.glf.getAllFonts=true
com.sun.glf.snippets.%SNIPPET% serif 30
glyphLayoutSnippet=java -Dcom.sun.glf.getAllFonts=true
com.sun.glf.snippets.%SNIPPET% serif CrossWords
textBlock=java -Dcom.sun.glf.getAllFonts=true
com.sun.glf.snippets.JustifiedTextBlock res/text/apidoc.txt serif 30
500
ch2TextCompositionFactory=java -Dcom.sun.glf.getAllFonts=true
com.sun.glf.util.CompositionStudio
res/com/sun/glf/beans/ch2/%SNIPPET%.ser.txt
ch3TextCompositionFactory=java -Dcom.sun.glf.getAllFonts=true
com.sun.glf.util.CompositionStudio
res/com/sun/glf/beans/ch3/%SNIPPET%.ser.txt
ch4TextCompositionFactory=java -Dcom.sun.glf.getAllFonts=true
com.sun.glf.util.CompositionStudio
res/com/sun/glf/beans/ch4/%SNIPPET%.ser.txt
ch5TextCompositionFactory=java -Dcom.sun.glf.getAllFonts=true
com.sun.glf.util.CompositionStudio
res/com/sun/glf/beans/ch5/%SNIPPET%.ser.txt
ch6TextCompositionFactory=java -Dcom.sun.glf.getAllFonts=true
com.sun.glf.util.CompositionStudio
res/com/sun/glf/beans/ch6/%SNIPPET%.ser.txt
ch7TextCompositionFactory=java -Dcom.sun.glf.getAllFonts=true
com.sun.glf.util.CompositionStudio
res/com/sun/glf/beans/ch7/%SNIPPET%.ser.txt
textCompositionFactory=java -Dcom.sun.glf.getAllFonts=true
com.sun.glf.util.CompositionStudio
res/com/sun/glf/beans/%SNIPPET%.ser.txt
compositionFactory=java -Dcom.sun.glf.getAllFonts=true
com.sun.glf.util.CompositionStudio com.sun.glf.snippets.%SNIPPET%
anchorPlacement=java -Dcom.sun.glf.getAllFonts=true
com.sun.glf.snippets.%SNIPPET% res/images/snippets/syberia84.jpg
colorCompositeUsage=java -Dcom.sun.glf.getAllFonts=true
com.sun.glf.snippets.%SNIPPET% res/images/snippets/vango09.jpg 255 0 0
lightOpUsage3=java -Dcom.sun.glf.getAllFonts=true
com.sun.glf.snippets.%SNIPPET% res/images/snippets/vango09.jpg 1.5
res/images/snippets/elevationMap.jpg
lightOpUsage4=java -Dcom.sun.glf.getAllFonts=true
com.sun.glf.snippets.%SNIPPET% doNotUseFile 4
res/images/snippets/elevationMap.jpg
lightOpUsage5=java -Dcom.sun.glf.getAllFonts=true
com.sun.glf.snippets.%SNIPPET% res/images/snippets/elevationMap.jpg
johnjsmith | Sat, 07 Jul 2007 02:40:00 GMT |
Is it possible to zoom in/out on jcomponents without losing the functionality of the components,i.e the clicking of the buttons and typing into the textfield. I know i could convert to an image an scale it, but unfortunately this cause the functionality to be lost.Is there a simple solution out ...
Does anybody know how to zoom into an image.I need to make an applet that can zoom in and out of an image. Something like a roadmap on the internet.Thanx.....
I have an application which uses java3d. So we've tried to bundle java3d with the application. Everything runs fine till the application is terminated, when X crashes.* Added j3audio.jar, j3utils.jar, j3core.jar and vecmath.jar to JAVA_HOME/jre/lib/ext* Added libJ3D.so, libJ3DUtils.so and ...
HI All, Can somebody help me in writing a primitive class for a line with an arrow head at one side.Thanks,Akhil Nagpal ...
Excuse me for the stupid question. I installed java3d successfully (examples work). Now I want to start writing code. Where do I do that, how do I run it, etc. Please, if any of you can think of a simple way to explain the dumbest questions that you can think of concerning writing and running ...
Hi all,I have a JPanel ,i have overridden the paint method to draw my own tree.The tree is contructed using imageicon and lines.i m using painticon method to paint the icon and drawline to drawline.There is a event for a click on the ImageIcon.i m using getScaledIntance(int w,int h,int hints); ...
How can i click the mouse ,the scene zoom as the center of Mouse cursor ? ...
YoyoApp.java example In the J3D package...private Geometry yoyoGeometry() {TriangleFanArray tfa;intN = 17; //This mean 17 vertexs right?inttotalN = 4*(N+1); //What is this mean?Point3f coords[] = new Point3f[totalN];intstripCounts[] = {N+1, N+1, N+1, N+1};//And what is this?Thank you.floatr = ...
Hi all,when i try to install the windows performance pack for jmf2.2.1 into my XP OS. The initialization of setup is not able to complete... unexpected error occurs. Well, a lot of other application fails to install as well.does that mean i cannot use jmf under XP ... sign ... who ever ...
Hi,I am looking for a good framework that implements XML Signature algorithms. Could you recommend me a nice one? (and free, of course).I have found some toolkits at Consortium's web:http://www.w3.org/Signature/#CodeI have tested "Canonical XML for Java" but it's getting me mad because of ...
Hello dear All :-)Does anybody know where can I find x509 structure description and is there any difference between x509 implementation of Microsoft, Thawte, Versign, etc. ? ...
I have to create a x509 certificate, but first i have to generate a pair of public and private key.How i can do?And also: how i can connect them?thanks ...
I am a little confused on the signature issue relating to certificate.I can use Signature.getInstance() and a private key to create (sign) a signature, which i can save to a file, blah.sigAccording to certificate docs, a signature is included in it, but is this the same signature as the one I ...
Dear fellow developers,I noticed that for some reason, I'm not able to reach the www.j3d.org pages anymore. Could it be that they changed the domain name or something? I tried the usual references to the site here on java.sun.com as well, but that also didn't work. Maybe I missed something. ...
Hi all,I want to use Java Applet to write a PDF file into the client's computer when he/she double click the URL in browser. Can I do that and HOW. I heard that i need to signed the applet and make security manager enable, but how to do it? Also, is it any different to do this for IE5X and ...