import be.nikiroo.fanfix_swing.gui.utils.UiHelper;
import be.nikiroo.fanfix_swing.gui.viewer.ViewerImages;
import be.nikiroo.fanfix_swing.gui.viewer.ViewerNonImages;
+import be.nikiroo.fanfix_swing.images.IconGenerator;
+import be.nikiroo.fanfix_swing.images.IconGenerator.Icon;
+import be.nikiroo.fanfix_swing.images.IconGenerator.Size;
public class TouchFrame extends JFrame {
private JPanel root;
JComponent scroll = comps[0];
- JToolBar navbar = new JToolBar();
+ JPanel navbar = new JPanel();
navbar.add(comps[1]);
- JToolBar zoombox = new JToolBar();
- JButton exit = new JButton("Ex"); // TODO: icon
+ JPanel zoombox = new JPanel();
+ JButton exit = new JButton(IconGenerator.get(Icon.back, Size.x32));
exit.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
zoombox.setIcons(//
IconGenerator.get(Icon.zoom_in, Size.x32), //
IconGenerator.get(Icon.zoom_out, Size.x32), //
- null, // TODO
- null// TODO
+ IconGenerator.get(Icon.fit_to_width, Size.x32), //
+ IconGenerator.get(Icon.fit_to_height, Size.x32) //
);
zoombox.addActionListener(new ActionListener() {
@Override