76 |
setBorder(BorderFactory.createEmptyBorder(0, 5, 5, 5)); |
setBorder(BorderFactory.createEmptyBorder(0, 5, 5, 5)); |
77 |
|
|
78 |
|
|
79 |
mainPane = new PixmapPane(Res.gfxToolbar); |
mainPane = new PixmapPane(Res.gfxToolBar); |
80 |
mainPane.setPixmapInsets(new Insets(1, 1, 1, 1)); |
mainPane.setPixmapInsets(Res.insetsToolBar); |
81 |
mainPane.setLayout(new BoxLayout(mainPane, BoxLayout.X_AXIS)); |
mainPane.setLayout(new BoxLayout(mainPane, BoxLayout.X_AXIS)); |
82 |
|
|
83 |
toolbar.setOpaque(false); |
toolbar.setOpaque(false); |
105 |
|
|
106 |
public void |
public void |
107 |
showFantasiaLogo(boolean b) { lLogo.setVisible(b); } |
showFantasiaLogo(boolean b) { lLogo.setVisible(b); } |
|
|
|
|
private static class FantasiaToolBar extends JToolBar { |
|
|
private static Insets pixmapInsets = new Insets(1, 1, 1, 1); |
|
|
|
|
|
FantasiaToolBar() { |
|
|
setOpaque(false); |
|
|
} |
|
|
|
|
|
protected void |
|
|
paintComponent(Graphics g) { |
|
|
super.paintComponent(g); |
|
|
PixmapPane.paintComponent(this, g, Res.gfxToolbar, pixmapInsets); |
|
|
} |
|
|
} |
|
108 |
} |
} |