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