how-to

Window

How to set external look and feel (from .jar)

For this section you need to use:

import javax.swing.*;

STEP 1

First, you need external .jar with look and feel. In most cases you can download it from web.

STEP 2

Add this .jar to your project.

STEP 3

For changing look and feel use appropriate identifier:

try {

  UIManager.setLookAndFeel( "napkin.NapkinLookAndFeel" );
      
  SwingUtilities.updateComponentTreeUI( this );      
  this.pack(); 
      
} catch ( ClassNotFoundException ex ) {
} catch ( InstantiationException ex ) {
} catch ( IllegalAccessException ex ) {
} catch ( UnsupportedLookAndFeelException ex ) {
}