Jiri Goddard

+ Follow
since Aug 21, 2007
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jiri Goddard

Simon Morris wrote:

pawan chopra wrote:Kindly suggests good book for JavaFX. I am a beginner to JavaFX.

I've hung back from answering this, as I'm the author of one of the JavaFX books currently available and I didn't think it would be fair for me to comment. However, as nobody else has volunteered an answer, I'll tell you about the two books I've experience of.

"Pro JavaFX Platform" (APress) is written by four highly respected members of the JavaFX community, including Stephen Chin who runs the JFXtras project (housing various extensions/alternatives to the standard JFX libraries). The book offers a comprehensive tutorial of JavaFX 1.2 plus the JFXtras project using Netbeans, through a series of small examples and a few larger projects. It is also designed to work well as a desktop API reference.
TOC: http://learnjavafx.typepad.com/weblog/2009/06/all-pro-javafx-early-access-ebook-chapters-have-been-updated-to-sdk-12.html

"JavaFX in Action" (Manning) was written by myself as a tutorial for novices that mixes fun with practicality. The book explains in depth (and in plain English) what makes JavaFX special and why it works the way it does, through a series of projects (my fav is the Enigma machine emulator!) It deliberately does not cover every single API class, just a broad representative sample -- the idea: compliment on-line docs, don't reprint them! The book is IDE agnostic, and tries to use free/open source tools when possible (eg: Inkscape rather than Adobe Illustrator).
TOC: http://www.jfxia.com/

Both books cover the latest JavaFX version (1.2) and both where written with the cooperation of Sun's JavaFX team members. Other books are available, but I'm not familiar with them -- hopefully other forum members will provide details.

Hello Simon,

I was positively surprised by the content of your book. I'm quite sad that the ripple effect demo didn't make it into the release though ;)

Thank you for your book, Jiri
10 years ago
Hello guys,

I'm trying to write a component that will fall apart after you click on it (I think the use case is clear ). Of course, it doesn't work properly. Who can help me?



First, repair the code so it compiles - uncomment the Group definition and make the onMouseClicked on Group - remove the "node."
Now the issues:
- although there's a code in both classes that is the same - the node.onMouseClicked handler, it compiles in first class, but not in the other one
- if i have my two components on stage and i click on them in the order i added them, it goes quite fine. if i do it vice versa, there's an artefact - i made the slices sequence visible for testing purposes.
- if you actually try to run the program, you spot another bug - after you click on component, the shatter effect appears at another place than are the mouse coordianates.

I played around with certain things for a long time. Now I think I don't see possible mistakes, that's why I came here.


Oh, yes - don't mind the vector() function
10 years ago

you can do a lot of stuff with jfx even without tooling (sl, fl, fx). i think the showstopper is marketing and the fact that jfx media codecs are older than those in flash :P
marketing is not good, because all the videos about jfx are in flash format. plus i haven't seen a single jfx based web. i'd like to build one and i'm curious how i'm gonna solve certain issues (fast startup, html content -> smooth update, performance...). i've got some demos on http://dredwerkz.ic.cz/javafx
i like jfx, but i haven't seen a single job offer/opportunity where to use it (in czech republic).
10 years ago

Andriy Tsykholyas wrote:

Jiri Goddard wrote:

yes. jfx takes advantage of gpu.

Hi Jiri,

thanks for answer. Is GPU used in all platforms, including Linux? Or this is just Windows advantage?

Best regards

there are both cg and hlsl shaders, so i suppose it's accelerated on all platforms (cg is like ms's hlsl)
10 years ago

Philippe Lhoste wrote:I am not familiar with existing game frameworks, but I doubt they have a concept of character or enemy, as they are more on the "business logic" end, and are not suited to all games (like Tetris...); they are easy enough to create and customize to your own needs.

Tiled world can be done with the Tile layout and you can scroll it with a ClipView.

There was a Tile project from Josh Marinacci on kenai.com, I think.
10 years ago

Jordan Thompson wrote:I have a chart that I would like to change the type on the fly (i.e. with a combo box of several different types) so the user can choose the one that is best for his/her needs. How would you go about this? I've been looking for a refresh/repaint function for the scene, but quite frankly I am lost.


you probably want to use binding. you can store the initial type of your chart in a variable that you later on bind where you need it - means at the place in your code where you want to change the type of chart. no need to refresh the scene.

10 years ago

uday batta wrote:Hi..i am new to JavaFX..need help...

How To Use JavaFX Charts in my Java Web Application.???

Do i need to maintain two different projects ..one for JavaFX and one for Java Web Application...

My Object is use JavaFX charts in my Java Web Application...

please help...thanks in advance

Few examples from the web:

this one is more explanatory:
10 years ago

nayela khan wrote:

Are you testing it in applet mode? In this case, you must sign the applet.

I am not testing in applet mode. I just run the project in netbeans 6 or alternatively, running the project creates a projectName.jnlp file which i can add to widgetFX dock

Looking again, I see backslashes. You are on Windows? You should specify a drive (absolute path), I think, something like: "E:/temp/test.xml"
It is hard to say on which drive the current directory is (unless you have only one disk & partition).

I even tried giving the complete drive path but still get the same exception..

The you probably need to set the permissions. Just follow the link to FilePermission class from this forum.
10 years ago

Andriy Tsykholyas wrote:Hi,

I'm interested in hardware acceleration capabilities of Java GUI and particularly JavaFX. I believe this is vitally important in the age of powerful GPUs. Adobe and Nvidia recently announced GPU acceleration for flash player. This would definitely provide a better experience for flash users owning Nvidia GPU.
What is going on in Java with GPU acceleration?
Has JavaFX some advantages in this area over Swing and SWT?

best regards



yes. jfx takes advantage of gpu.
10 years ago

Jeff Moles wrote:My company makes an implementation of CDC/PBP for the things you mention. What are you looking for?


great, maybe you can help me. i'd like to know how can i test my xlet app on my stb at home. i've read something about this java-tv api but couldn't found a deployment method suitable for standalone developer. i own conax cv-5000 stb. i'd buy newer, but i need to know if i can easily deploy and test my apps on it.

as you can read, i'm very new into this. help is greatly appreciated.

10 years ago
basically it's because you could use later on the variable uninitialized in your program, which could cause a runtime error that's why you have to use the compile time constant. thanks for java safety
13 years ago
what do you mean by "easily"? for free or just available in stores or e-shops...
in first case, i could provide you with some book i bought, but it's not legal i guess the second option is clear - try to search on amazon.com
13 years ago

Originally posted by Peter Chase:

How would you know? The AppUtil class is presumably a class written by, or in use by, the original poster.

Depending on what it does, the String.trim() may or may not be equivalent.

i would not sue him for this i have also my "wild guess" that the original poster wanted to use the String's trim() method.
13 years ago
maybe because the Object class is on the top of the hierarchy and all of the other classes inherit from it directly or indirectly. consider this:

public class Test {
//some testing code goes here...

this class also inherits from the Object class even am not specifying this here like "... Test extends Object {"
so this way my class inherited also the equals() method from Object class and so others do. The reason you can find equals() method in String class (and others) is that the String class is overriding its behavior to fit its needs.
13 years ago