Example usage for javax.swing JToolBar isRollover

List of usage examples for javax.swing JToolBar isRollover

Introduction

In this page you can find the example usage for javax.swing JToolBar isRollover.

Prototype

public boolean isRollover() 

Source Link

Document

Returns the rollover state.

Usage

From source file:Main.java

public static void main(String[] argv) throws Exception {
    // Create a horizontal toolbar
    JToolBar toolbar = new JToolBar();

    // Get current rollover mode
    boolean b = toolbar.isRollover();

    // Enable rollover mode
    toolbar.setRollover(true);//from   www  .j  a  v a 2 s.  co  m
}