Package nz.govt.natlib.meta.ui

Examples of nz.govt.natlib.meta.ui.ImageButton


          10);
      Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
      this.setLocation((screenSize.width - 230) / 2,
          (screenSize.height - 100) / 2);
      this.setResizable(false);
      ImageButton cancelButton = new ImageButton("CANCEL", closePic);
      JLabel scheduleLbl = new JLabel(schedulePic);
      scheduleLbl.setBorder(null);
      JPanel wrapPanel = new JPanel(new BorderLayout());
      wrapPanel.setBorder(scheduleBorder);
      JPanel mainPnl = new JPanel(new GridLayout(2, 1, 10, 10));
      mainPnl.add(messageLbl);
      mainPnl.add(cancelButton);
      wrapPanel.add(mainPnl, BorderLayout.CENTER);
      wrapPanel.add(scheduleLbl, BorderLayout.WEST);
      this.getContentPane().add(wrapPanel, BorderLayout.CENTER);
      mainPnl.setBorder(scheduleBorder);
      dday = tw.getScheduledTime();
      final ScheduleRunner scheduler = new ScheduleRunner();
      Thread t = new Thread(scheduler);
      cancelButton.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent ae) {
          LogManager.getInstance().logMessage(LogMessage.INFO,
              "Scheduled harvest cancelled ");
          scheduler.cancel();
        }
View Full Code Here


    mainPnl.setLayout(new BorderLayout());
    configTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    Border configBorder = new TitledBorder(BorderFactory
        .createEtchedBorder(Color.white, new Color(148, 145, 140)),
        "Add/Remove Configurations");
    addConfig = new ImageButton("Add", addPic);
    addConfig.addActionListener(new AddConfigAction());
    delConfig = new ImageButton("Delete", delPic);
    delConfig.addActionListener(new DelConfigAction());
    buttonPnl.add(addConfig);
    buttonPnl.add(delConfig);
    JPanel bottomPnl = new JPanel(new BorderLayout());
    buttonBfrPnl.add(buttonPnl);
View Full Code Here

      }
    });
    elapsedPnl.add(tw, BorderLayout.EAST);
    mainPnl.setLayout(new GridLayout(2, 1));
    elapsedPnl.setBorder(elapsedBorder);
    ImageButton applyButt = new ImageButton("Schedule", goPic);
    ImageButton closeButton = new ImageButton("Close", closePic);
    JPanel bufButPnl = new JPanel(new BorderLayout());
    bufButPnl.add(buttonPnl, BorderLayout.SOUTH);
    JPanel buttImplPnl = new JPanel(new GridLayout(1, 2, 5, 5));
    buttonPnl.add(buttImplPnl, BorderLayout.EAST);
    buttImplPnl.add(closeButton);
    buttImplPnl.add(applyButt);
    buttonPnl.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
    mainPnl.add(elapsedPnl);
    mainPnl.add(startPnl);
    mainPnl.setBorder(mainBorder);
    bufferPnl.add(mainPnl, BorderLayout.NORTH);
    bufferPnl.add(bufButPnl, BorderLayout.SOUTH);
    this.setBorder(scheduleBorder);
    this.add(bufferPnl, BorderLayout.CENTER);
    applyButt.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent ae) {
        schedule();
      }
    });
    closeButton.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent ae) {
        parent.setVisible(false);
      }
    });
  }
View Full Code Here

TOP

Related Classes of nz.govt.natlib.meta.ui.ImageButton

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.