65 |
import javax.swing.JDialog; |
import javax.swing.JDialog; |
66 |
import javax.swing.JFrame; |
import javax.swing.JFrame; |
67 |
import javax.swing.JToolBar; |
import javax.swing.JToolBar; |
68 |
|
import javax.swing.KeyStroke; |
69 |
import javax.swing.RootPaneContainer; |
import javax.swing.RootPaneContainer; |
70 |
import javax.swing.SwingConstants; |
import javax.swing.SwingConstants; |
71 |
import javax.swing.SwingUtilities; |
import javax.swing.SwingUtilities; |
134 |
protected FocusListener toolBarFocusListener; |
protected FocusListener toolBarFocusListener; |
135 |
|
|
136 |
/** |
/** |
137 |
|
* @deprecated since JDK1.3. |
138 |
|
*/ |
139 |
|
protected KeyStroke leftKey; |
140 |
|
|
141 |
|
/** |
142 |
|
* @deprecated since JDK1.3. |
143 |
|
*/ |
144 |
|
protected KeyStroke rightKey; |
145 |
|
|
146 |
|
/** |
147 |
|
* @deprecated since JDK1.3. |
148 |
|
*/ |
149 |
|
protected KeyStroke upKey; |
150 |
|
|
151 |
|
/** |
152 |
|
* @deprecated since JDK1.3. |
153 |
|
*/ |
154 |
|
protected KeyStroke downKey; |
155 |
|
|
156 |
|
/** |
157 |
* The floating window that is responsible for holding the JToolBar when it |
* The floating window that is responsible for holding the JToolBar when it |
158 |
* is dragged outside of its original parent. |
* is dragged outside of its original parent. |
159 |
*/ |
*/ |
612 |
|
|
613 |
/** |
/** |
614 |
* This method installs listeners for the JToolBar. |
* This method installs listeners for the JToolBar. |
|
* |
|
|
* @param toolbar The JToolBar to register listeners for. |
|
615 |
*/ |
*/ |
616 |
protected void installListeners(JToolBar toolbar) |
protected void installListeners() |
617 |
{ |
{ |
618 |
dockingListener = createDockingListener(); |
dockingListener = createDockingListener(); |
619 |
toolBar.addMouseListener(dockingListener); |
toolBar.addMouseListener(dockingListener); |
713 |
toolBar.setOpaque(true); |
toolBar.setOpaque(true); |
714 |
installDefaults(); |
installDefaults(); |
715 |
installComponents(); |
installComponents(); |
716 |
installListeners(toolBar); |
installListeners(); |
717 |
installKeyboardActions(); |
installKeyboardActions(); |
718 |
} |
} |
719 |
} |
} |