Package javax.swing.plaf.metal.MetalBorders

Examples of javax.swing.plaf.metal.MetalBorders.ToolBarBorder


    catch (UnsupportedLookAndFeelException e)
      {
        e.printStackTrace()
      }
    JToolBar tb = new JToolBar(JToolBar.HORIZONTAL);
    ToolBarBorder b = new ToolBarBorder();
    Insets insets = b.getBorderInsets(tb, new Insets(1, 2, 3, 4));
    harness.check(insets, new Insets(2, 16, 2, 2));
    tb.setOrientation(JToolBar.VERTICAL);
    insets = b.getBorderInsets(tb, new Insets(1, 2, 3, 4));
    harness.check(insets, new Insets(16, 2, 2, 2));
   
    boolean pass = false;
    try
    {
      b.getBorderInsets(null, null);
    }
    catch (NullPointerException e)
    {
      pass = true;
    }
View Full Code Here

TOP

Related Classes of javax.swing.plaf.metal.MetalBorders.ToolBarBorder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.