Do you want to know how to develop your skillset to become a Java Rockstar?

Subscribe to our newsletter to start Rocking right now!

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

 

1. JPA Mini Book

2. JVM Troubleshooting Guide

3. JUnit Tutorial for Unit Testing

4. Java Annotations Tutorial

5. Java Interview Questions

 

and many more ....

 

 

Handle print job events

With this tutorial we shall show you how to handle print job events in a Java Desktop Application. This is a very important step to consider when you handle many print jobs in your application an you want to monitor their status as well as inform the user for the progress of his print jobs. Basically, all you have to ...

Read More »

Use Printing Service in Java

In this example we are going to see how to use streaming printing services in a Java Desktop Application. This is very usefull when you wanto to handle print jobs inside your application. It’s very easy to use streaming printing services in Java. All you have to do is: Open a pdf file using new BufferedInputStream(new FileInputStream("myfile.pdf")). Create a PDF DocFlavor. ...

Read More »

Discover Streaming Print Services

With this example we shall show you how to discover streaming print services in a Java Desktop Application. You will find this particularly useful when you want to create and handle print jobs from you application. Discovering streaming print services is very easy as it requires that you : Use StreamPrintServiceFactory.lookupStreamPrintServiceFactories(null, null) to locates factories for print services that can ...

Read More »

Discover Print Services

With this example we shall show you how to discover print services in a Java Desktop Application. You will find this particularly useful when you want to create and handle print jobs from you application. Discovering streaming print services is very easy as it requires that you : Use PrintServiceLookup.lookupPrintServices to locates factories for print services that can be used with ...

Read More »

Handle sampled audio playing events

In this tutorial we are going to see how to handle sampled audio playing events.This is a very important task if you plan to create a small media player in your app. Handling samples audio events will help you monitor the progress of the audio playing and inform the user for any mistakes or errors. In short, in order to ...

Read More »

Play sampled audio

This is a tutorial that shows how to play sampled audio in a Java Desktop applications. You can use this if you want to embed a simple media player in your application. In order to play sampled audio one should follow these steps: Obtain an audio input stream from the provided file calling AudioSystem.getAudioInputStream(new File("sampled_file.wav")). Then, obtain the audio format of ...

Read More »

Get Midi audio file properties

With this tutorial we are going to see how to get MIDI audio file properties. This is a useful operation when you want to inform the user about several important properties of the audio files. Basically in order to get MIDI audio file properties one should follow these steps: Obtain the default Sequencer connected to a default device using MidiSystem.getSequencer(). ...

Read More »

Handle Midi playing events

In this tutorial we are going to see how to handle MIDI playing events in a Java Desktop Application. You might find this particularly useful when you want to create a simple media player inside your application and you want to monitor the progress media playing. In short, in order to handle MIDI playing events you should: Obtain the default Sequencer connected ...

Read More »

Play Midi audio

With this example we shall show you how to play MIDI audio files in a Java Desktop Application. This is very useful when you want to embed a simple audio player in your application. In short, playing MIDI audio files requires that you: Obtain the default Sequencer connected to a default device using MidiSystem.getSequencer(). Create a stream from a file to the ...

Read More »

Create video from image frames with Xuggler

Let’s now see how to create a video from scratch. As input, we will use sequential snapshots from our desktop. This can be used for a rudimentary screen recording application. This is very important when you want to make your want to create individual frames and make your own custom video. We are going to use Xuggler for that. In ...

Read More »