Package net.laubenberger.bogatyr.view.swing

Examples of net.laubenberger.bogatyr.view.swing.Button


    panelEast.add(new Label());
// 
    panel.add(panelWest, BorderLayout.WEST);
    panel.add(panelEast, BorderLayout.EAST);
   
    final Group group = new Group(new Insets(0, 0, 0, 10), new Button(new ActionClose()), new Button(new ActionInfo()));
    panel.add(group, BorderLayout.SOUTH);
   
    getContentPane().add(panel);
    pack();
  }
View Full Code Here


    if (!mp.isRunning()) {
      setTitle(localizer.getValue(HelperResource.RES_LABEL_STOPPED));
    }

    final Button buttonOpen = new Button(mp.getActionOpen());
    buttonOpen.setFocusable(false);

    final Button buttonStart = new Button(mp.getActionStart());
    buttonStart.setFocusable(false);

    final Button buttonStop = new Button(mp.getActionStop());
    buttonStop.setFocusable(false);

    final Button buttonSkipBackward = new Button(mp.getActionSkipBackward());
    buttonSkipBackward.setFocusable(false);

    final Button buttonSkipForward = new Button(mp.getActionSkipForward());
    buttonSkipForward.setFocusable(false);

    final Group group = new Group(new Insets(5, 5, 5, 5), buttonOpen, buttonStart, buttonStop, buttonSkipBackward,
        buttonSkipForward);

    getContentPane().add(group);
View Full Code Here

    panelEast.add(new Label());
   
    panel.add(panelWest, BorderLayout.WEST);
    panel.add(panelEast, BorderLayout.EAST);

    final Group group = new Group(new Insets(0, 0, 0, 0), new Button(new ActionClose()));
    panel.add(group, BorderLayout.SOUTH);

    getContentPane().add(panel);
    pack();
  }
View Full Code Here

    final JProgressBar pb = new ProgressBar();
    pb.setIndeterminate(true);
    panel.add(pb, BorderLayout.CENTER);

    final JButton button = new Button(localizer.getValue(HelperResource.RES_LABEL_CANCEL_TASK), view.getController()
        .getScaledIcon(Icon.CANCEL), localizer.getTooltip(HelperResource.RES_LABEL_CANCEL_TASK));
    button.addActionListener(new ActionListener() {

      @Override
      public void actionPerformed(final ActionEvent e) {
        task.getWorker().cancel(true);
      }
View Full Code Here

TOP

Related Classes of net.laubenberger.bogatyr.view.swing.Button

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.