Skip to main content
View by: Most Recent | Topic | Community | Webloggers   
Monthly Archives:    

Blogs by topic: Programming

• Accessibility • Ajax • Blogging • Business • Community 
• Databases • Deployment • Distributed • Eclipse • Education 
• EJB • Extreme Programming • Games • GlassFish • Grid 
• GUI • IDE • Instant Messaging • J2EE • J2ME 
• J2SE • Jakarta • JavaFX • JavaOne • Jini 
• JSP • JSR • JXTA • LDAP • Linux 
• Mobility • NetBeans • Open Source • OpenSolaris • OSGi 
• P2P • Patterns • Performance • Porting • Programming 
• Research • RMI • RSS Feeds • Search • Security 
• Servlets • Struts • Swing • Testing • Tools 
• Virtual Machine • Web Applications • Web Design • Web Development Tools • Web Services and XML 


Programming

Ed has developed a 50 minute audio-visual presentation recounting his experience in writing the book. This presentation includes audio clips from the programmers themselves, including subtitles for those for whom English is not their native language, together with insight to tie it all together. Ed has given this presentation at numerous international developer conferences and user groups around...
on Sep 22, 2009
Sun just released the first maintenance update for JavaFX 1.2. This release brings mostly a batch of important javafxc fixes, that I dissect in this blog... Java programmers are used to the fact that compilation of Java source code is a relatively straightforward process, because the Java language has a simple mapping to the Java bytecode. So javac is a trivial compiler, at least in the code...
on Sep 9, 2009
In a game the score refers to the amount of points gained by a player or a team. Consider a JavaFX component that shows the score and enables its smooth changing. javafx({ name: "Main", width: 350, height: 125, archive: "https://malenkov.dev.java.net/20090804/ScoreCounter.jar" });The value variable of the Score class starts a timeline on replace that smoothly changes the old value to a...
on Aug 4, 2009
Welcome to the Javadoc Community, a resource for application developers that is enhanced by the community. You read and use the JavaDoc for your projects as in the past, but now you can also view the Javadoc in any one of a variety of languages. Additionally, you can add translations for some of the languages. Check out the cool new way of browsing javadocs.. Visit DocWeb!
on Jul 7, 2009
The Flex guys have enjoyed this for a long time. When I discussed JavaFX with a friend who is familiar with Flex, he shrugged the feature off, clearing unimpressed with JavaFX despite his appreciation for the feature itself. Still, for Java enthusiasts, bind is a welcome language feature. Another link and run post. Read more about using the bind keyword in JavaFX in the blog tip Binding var and...
on Jun 27, 2009
I hate to simply drop a link and run, but that's essentially what I'm doing here until others learn about my new blog Learning JavaFX. My most recent dip into JavaFX involves for-loop constructions. And this experience brings up an interesting question for me. How do you access a variable outside the loop if it contains the same name as the "formal parameter" of the loop itself? For examples of...
on Jun 23, 2009
My colleague has just returned from JavaOne and brought an HTC Diamond cell phone that supports JavaFX. Of course I couldn't stop but running my demos on it. Here they are in the order as they appeared: · Drawing Application · Flying Letters · Magnetic Balls · Weather Widget · Firework (We Salute You) · Analog Clock · First Layout Sample...
on Jun 18, 2009
Property binding is a great feature of JavaFX Script, but it's not without its issues, limitations or risks as you can see in recent posts. But even if perfect, no programming language feature exempts the programmer from learning how to use it optimally. There is an important rule that you must follow for binding. Check this code (simplified, from the JavaFX Balls benchmark): <p>public...
on Jun 17, 2009
Long ago, I started a series called JavaFX Learning Curve Journal. Those articles/journals were on java.sun.com at the very beginning of the JavaFX project. I recently tried to find some of those articles, and I think they've been removed or improved significantly. They're certainly not recognizable in their original form. That's probably a good thing. The language has changed since then, and we...
on Jun 14, 2009
I put the slides for my technical session at JavaOne online here. The session is: TS-3802, Functional and Object-oriented Programming in the JavaScript Programming Language. The repetition of the word "programming" is entirely due to lawyer intervention, I should note. Also, the formatting is slightly different from the one I used at the conference, due to the various conversions involved. I've...
on Jun 10, 2009
The JavaFX 1.2 SDK provides many useful utility classes such as the Properties class used to access and store name/value pairs or the Storage class used to store the data locally on the client system. So far the JavaFX programming language does not support hash tables to store data of any type, but you can always use the Properties class for this purpose. For a start, let's create methods to put...
on Jun 5, 2009
So the next version of JavaFX has been released. I developed an example that shows all the node-based UI controls that had been added to the API to replace the controls based on the Swing library. Note, that new UI controls are available on all platforms including mobile. The following set of the controls is included in the current API:TextBox: A control which displays and accepts input of text....
on Jun 2, 2009
Consider the following interface: public interface X { public void doSomething() } and two implementations: public class Good implements X { public void doSomething() { ; } } public class Bad implements X { public void doSomething() { throw new RuntimeException(""); } } Let's have a convenience class ExcpnChecker with just one static method to check whether a given...
on May 15, 2009
The SunTechDays conference will take place in Saint-Petersburg this week. I'm going to participate in it and hold the "Developing Innovative Multimedia JavaFX Applications" seminar together with my colleague. I'll be talking about accessing the web services and deploying applications. My presentation will be based on the WeatherWidget sample that was slightly refactored. So, what kind of weather...
on Apr 6, 2009
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 insert and delete names. The <a href="http://java.sun.com/javase/6/docs/api/java/io/File.html">File</a> class contains the delete method. How would you delete a file from JavaFX? The issue here is that the...
on Mar 31, 2009
Some Meta thoughts on Project... /* default css */ table { font-size: 1em; line-height: inherit; } tr { text-align: left; } div, address, ol, ul, li, option, select { margin-top: 0px; margin-bottom: 0px; } p { margin: 0px; } pre { font-family: Courier New; white-space: pre-wrap; margin:0; } body { margin: 6px; padding: 0px; font-family: Verdana, sans-serif; font-size: 10pt; background-color...
on Mar 19, 2009
Fullscreen mode and transparent windows are supported in JavaSE 6 since update 10. I have developed the SideBar example for the JavaOne 2008 by using proprietary Java API to create translucent window that slides out of the right side of the screen. Now I am ready to show the SideBar example created by using the JavaFX API only. Let's create a fullscreen window first. In the current...
on Mar 18, 2009
Yesterday a friend asked me a question about Java resource bundles: how can I get my application to discover resource bundles dynamically? It seemed like a simple question. I answered in my typical fashon: Well, everytime you need a new bundle, just add that bundle's jar or directory to your classpath and run the application. Or if it's just a single properties file, add that file to your...
on Mar 6, 2009
This application creates a digital clock, and is based on the analog clock implementation taken from another example. String formatting is applied to display the current time. Unfortunately, the application can not be run on the mobile emulator, because the mobile profile of JavaFX API does not support graphical effects yet. I'm a little bit lazy today. Therefore, I borrowed the implementation of...
on Mar 3, 2009
(We Salute You): This simple example produces the firework effect using JavaFX Script. The active use of random numbers brings variety to each firework volley. javafx({ code: "Firework", name: "Firework", width: 500, height: 300, archive: "https://malenkov.dev.java.net/20090227/Firework.jar" });The Flash class extends the CustomNode class and implements the create method. This method...
on Feb 27, 2009