Search |
||
Java from JavaFXPosted by malenkov on March 31, 2009 at 8:00 AM PDT
The most powerful advantage of JavaFX is an easy use of Java classes. However, you can encounter an issue when calling some methods, for example, those that have the The issue here is that the Sorry, I was trying to understand an expression
but I got confused when I saw 'delete' which is a keyword.
new java.io.File("temp").delete();
^
To solve this issue, use double angle brackets. new java.io.File("temp").<<delete>>();
But that's the half of the story so far! This syntax allows any text line to be used as an identifier. def <<english
variable>> = "any symbols can be used as identifier";
def <<руÑÑÐºÐ°Ñ Ð¿ÐµÑ€ÐµÐ¼ÐµÐ½Ð½Ð°Ñ>> = <<english
variable>>;
println(<<руÑÑÐºÐ°Ñ Ð¿ÐµÑ€ÐµÐ¼ÐµÐ½Ð½Ð°Ñ>>);
Note that CR/LF is a part of the identifier above. You can use a funny mug as a name for a debugging function. function << o.O >> (error) {
println("ERROR: {error}")
}
<< o.O >> ("WTF!");
The code above prints ERROR: WTF! »
Related Topics >>
Programming Comments
Comments are listed in date ascending order (oldest first)
Submitted by ramnathganesan on Fri, 2009-04-17 06:54.
Hi Sergey,
thanks for all the interesting topics you have discussed. I had a question "kinda" related to 'Java from JavaFX'. I am trying to connect a desktop JavaFX application to an Access database. I know that you can use Java to connect, however all the samples I have seen are for the preview SKD and do not work for the current release. Do you have any samples or insight regarding the best way to do this?
Thanks!
Submitted by malenkov on Fri, 2009-04-17 07:06.
I never tryed to access any databases. You can start from here:
http://blogs.sun.com/kenji/entry/how_to_connect_data_base
Seems it should work.
|
||
|
|