![]() |
The Java Developers Almanac 1.4Order this book from Amazon. |
e818. Preventing a JToolbar Container from FloatingBy default, a toolbar can float, that is, it can be dragged to a different edge in its container or it can be moved into a top-level window.// Create a horizontal toolbar JToolBar toolbar = new JToolBar(); // Get current floatability boolean b = toolbar.isFloatable(); // Disable floatability toolbar.setFloatable(false);
e817. Determining When a Floatable JToolBar Container Changes Orientation e819. Highlighting Buttons in a JToolbar Container While Under the Cursor © 2002 Addison-Wesley. |