List/Grid Java Subscribe to the RSS feed of category Java

openjdk-logo

Building OpenJDK on Windows

Doing some experiments, I found that it often useful to have JDK source code available in hand to make some changes, play with it, etc. So I decided to download and compile that beast. ...
java-logo

Java Annotations – Retention

Consider a Java annotation: public @interface AnAnnotaton {} A class with this annotation applied on it: @AnAnnotaton class AnAnnotatedClass{ } And a test which checks if ...
codehaus-cargo-logo

Maven Cargo plugin for Integration Testing

A very common need in the lifecycle of a project is setting up integration testing. Luckily, Maven has built-in support for this exact scenario, with the following phases of the default ...
java-logo

A Generic and Concurrent Object Pool

In this post we will take a look at how we can create an object pool in Java. In recent years, the performance of the JVM has multiplied manifold that object pooling for better performance ...
java-duke-logo

Make JFrame transparent

First create a frame that has a slider in it which will be used to set transparency amount. import javax.swing.JFrame; import javax.swing.JSlider;public class TransparentFrame ...
javafx-logo

Expression Based PathTransitions in JavaFX

In JavaFX you are able to animate nodes along a path using PathTransition objects. PathTransitions use Shape objects to describe the path they need to animate along. JavaFX provides ...
junit-logo

5 Tips for Unit Testing Threaded Code

Here’s a few tips on how take make testing your code for logical correctness (as opposed to multi-threaded correctness). I find that there are essentially two stereotypical patterns ...
java-logo

Java: Choosing the right Collection

Here is a quick guide for selecting the proper implementation of a Set , List , or Map in your application. The best general purpose or ‘primary’ ...
java-logo

Common code violations in Java

At work, recently I did a code cleanup of an existing Java project. After that exercise, I could see a common set of code violations that occur again and again in the code. So, I came ...
apache-digester-logo

Apache Digester Example – Make Easy Configuration

Address Problem – Hard Coding , Need to create custom configuration for your application like struts configuration file to vary application behavior just by changing the file. Apache ...
Java Code Geeks and all content copyright © 2010-2014, Exelixis Media Ltd | Terms of Use | Privacy Policy
All trademarks and registered trademarks appearing on Java Code Geeks are the property of their respective owners.
Java is a trademark or registered trademark of Oracle Corporation in the United States and other countries.
Java Code Geeks is not connected to Oracle Corporation and is not sponsored by Oracle Corporation.
Do you want to know how to develop your skillset and become a ...
Java Rockstar?

Subscribe to our newsletter to start Rocking right now!

To get you started we give you two of our best selling eBooks for FREE!

Get ready to Rock!
You can download the complementary eBooks using the links below:
Close