devxlogo

Tip Bank

Loading Classes Directly from .jar Archives

Whenever a class is referenced in a Java program, the class is loaded using the class loader from the JVM’s bootstrap or from the application-server. This often becomes a problem

Play an MP3 Using Java Media Framework

The following code shows you how to develop a simple Java application that can play MP3 files. This application is based on JMF (Java Media Framework). import javax.media.*;import java.io.*;import java.net.URL;

Resize a Form to the Working Area on the Desktop

The code below demonstrates how to resize a form to the working area on the desktop using GetScreenRect. Private Sub frmFullScreen_Load _ (ByVal sender As System.Object, ByVal e As System.EventArgs)

Create a Menu Bar with JavaFX

Here’s a JavaFX example that creates a nice menu bar. All you need is a set of images named: home_1.bmp (unpressed), home_2.bmp (pressed), news_1.bmp, news_2.bmp,contact_1.bmp, contact_2.bmp, photos_1.bmp and photos_2.bmp: import