Know how persist document in the Cassandra in a way fairly simple
Given some information about Java 7, i will now show the imrovements to the latest version.In this article i use the netbeans version 7.0.1, for this you need to download the JDK 7 (the link is below the article). After downloading and installing Netbeans (but during the installation remember to select the JDK 7 path).
The first example will show switch with String, previously...
Beyond being merely a computer programming language, Java is the most widely used software platform in the entire world. There is a large number of various software solutions that were developed using this technology. Without many people being aware, Java is present in our daily lives in embedded technologies like blue-ray discs and a countless number of sites on the internet that...
Many things changed from java 1 in 1995 at java 7 2012. Learn about this reading this article.
A couple of weeks ago, I sent out a little quiz to my readers of The Java Specialists' Newsletter. No one managed to figure out what the code does without running it. Some managed to explain the result once they had run it. Perfect quiz for weeding out those job applicants you don't like. Especially if you are working in the banking industry. OK, enough hints, let's look at the quiz :-)
A new tutorial exercises VisualLangLab using all the examples and techniques in Chapter-3 "A Quick Tour for the Impatient" of the book "The Definitive ANTLR Reference". A new "WildCard" pseudo-token that matches any other defined token has been added to facilitate recovery from grammar errors in the input. Read about the various other improvements that make VisualLangLab even more user-friendly.
JavaFX 2.0 is not multiplatform! It can't do subpixel antialiasing!! … these were among the reactions to the first beta releases, that I'm not sure to understand as trolling or simple laziness. These mysteries are usually solved with a simple look at JavaFX's public JIRA issue tracking system. The current implementation is still a beta, not even a feature-complete beta, so there are many...
It's been a long time, well long in Internet-years, since my last blog on JavaFX. Now I'm approaching JavaFX 2.0 by porting the JavaFX 1.x programs that I had written and blogged about here. These new ports will allow me to evaluate the evolution of the platform. Has the wait been worth it?
Porting from JavaFX 1
For my first port I’ve picked JavaFX Balls. (But this blog is not about...
In my last blog I’ve introduced JavaFX 2.0 beta, describing an initial port of JavaFX Balls, also in beta stage at that time. Now I finally finish JavaFX Balls 3.
Look ma, no design!
I don’t pretend to be a designer, and the consequence is that when I make a mashup of animation, video and web, that’s the result. Get the source code here.
I’ve added new layers of content...
Welcome java 7 part 3 -NIO 2 JSR 203
So like the coin project, in the NIO 2 there aren't unprecedented features in this e -specification, but now it's possible do some easier work I/Os in java. With the class java.io.Files are possible to perform several operations in simple mode. For that it needs and uses the java.io.file.Path, this interface represents files and...
On the new JavaFX 2.0.2 beta release for Mac OS.
This short post contains useful hints about finding the correct size for your JavaFX windows.
One of the key features of JavaFX 2.0 is an ability to embed JavaFX content into Swing applications. This post provides some details about how it should be done.
Was added to his package to facilitate applications which needs scalable processes.
A feature is atomic variable. Variable atomic means that it cannot be divided - it's like the S.O. with any resource (Driver CD, USB) cannot be divided but needs be used in many processes.
The java.util.concurrent library added a little gem of a class, TimeUnit, which is well worth knowing a bit about.
Swing makes it very easy to control and modify simple components like JLabel or JButton. It gets trickier when you customize a compound component like JTree or JTable. Unlike a simple component, JTable consists of multiple subcomponents like table header, renderer and editor, so actually JTable is not a single component but a container with several descendants.
Imagine that you want to customize...
In the list of the things that needs improving in Swing, the implementation of listeners takes the first place. The problem is the fact that the order in which listeners are notified is not specified and it is not even guaranteed that your listeners will be notified after the Swing system listeners. Actually all listeners can be mixed together with any possible combination and it leads to two...
Generics doesn't work well with arrays. Everybody knows that you can't create a generified array,
but not many people really know what it was done this way.
A nice article from Brian Goetz helped me to understand the problem
when I studied the new features of JDK 5.
The arrays in java are covariant when generics are not. The following code clearly shows it:
String stringArray = new String[1...