List of usage examples for javax.swing JToolBar getUI
public ToolBarUI getUI()
From source file:Main.java
public static void unfloatToolBar(JToolBar tb) { ToolBarUI tbUI = tb.getUI(); if (tbUI instanceof BasicToolBarUI) ((BasicToolBarUI) tbUI).setFloating(false, null); }
From source file:Main.java
public static void floatToolBar(JToolBar tb, Point p) { ToolBarUI tbUI = tb.getUI(); if (tbUI instanceof BasicToolBarUI) ((BasicToolBarUI) tbUI).setFloating(false, p); }