Corporate Design

Java Report Viewer

The Java report viewer is using the look and feel of the Swing framework. The applet (Java viewer in the browser) use the platform default look and feel. If you want use your own look and feel or another look and feel then you need to set it before you create an instance of the viewer. The follow sample show it for the Nimbus look and feel.

try {
    UIManager.setLookAndFeel( "javax.swing.plaf.nimbus.NimbusLookAndFeel" );
} catch (Exception ex) {
    ex.printStackTrace();
}