|
|
|
@ -5,7 +5,6 @@ import java.awt.*;
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
|
|
|
|
|
|
public class UIToolbar extends JToolBar { |
|
|
|
|
private static final int TOOLBAR_HEIGNT = 26; |
|
|
|
|
|
|
|
|
|
public UIToolbar() { |
|
|
|
|
this(FlowLayout.LEFT); |
|
|
|
@ -24,13 +23,6 @@ public class UIToolbar extends JToolBar {
|
|
|
|
|
this(align, new UIToolBarUI()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public Dimension getPreferredSize() { |
|
|
|
|
Dimension dim = super.getPreferredSize(); |
|
|
|
|
dim.height = TOOLBAR_HEIGNT; |
|
|
|
|
return dim; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void checkComponentsByNames(boolean flag, ArrayList<String> names) { |
|
|
|
|
for (int i = 0; i < getComponentCount(); i++) { |
|
|
|
|
Component component = getComponents()[i]; |
|
|
|
|