Package dan.swing

Examples of dan.swing.JPrettyButton


    add(paramPanel);

    add(Box.createVerticalGlue());

    //buttons:
    btnExecute = new JPrettyButton("Run");
    AppStyles.applyStyle(btnExecute, "ParameterPanel button.run");
    btnExecute.addActionListener(this);
    dim = btnExecute.getPreferredSize();
    btnExecute.setPreferredSize(new Dimension(dim.width * 5, dim.height));
    btnExecute.setMaximumSize(new Dimension(Integer.MAX_VALUE, dim.height));
View Full Code Here


    pnlButtons = new JPanel();
    pnlButtons.setLayout(new BoxLayout(pnlButtons, BoxLayout.X_AXIS));
    pnlButtons.add(Box.createHorizontalGlue());

    btnClean = new JPrettyButton("Clean Up");
    btnClean.setMaximumSize(btnClean.getPreferredSize());
    btnClean.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        cleanUp();
      }
View Full Code Here

       
        //right (buttons)
        pnlButtons = new JPanel();
        pnlButtons.setLayout(new BoxLayout(pnlButtons, BoxLayout.Y_AXIS));
      
        btnView = new JPrettyButton("View Results");
        btnView.addActionListener(this);
        btnView.setEnabled(false);
        AppStyles.applyStyle(btnView, ".job-status button.view");
       
        btnRemove = new JPrettyButton("Remove");
        btnRemove.addActionListener(this);
        btnRemove.setPreferredSize(btnView.getPreferredSize());
        AppStyles.applyStyle(btnRemove, ".job-status button.remove");
       
        pnlButtons.add(btnView);
View Full Code Here

      Dimension dim = panel.getPreferredSize();
      panel.setMaximumSize(new Dimension(Integer.MAX_VALUE, dim.height));
  }
 
  else if (s.equals("WorkflowExecutionPanel Button.execute")) {
      JPrettyButton button = (JPrettyButton)comp;
      button.setBackground(Color.GREEN);
     
      //Dimension dim = button.getPreferredSize();
      //button.setMaximumSize(new Dimension(Integer.MAX_VALUE, dim.height));
  }
  else if (s.equals("WorkflowExecutionPanel Panel.buttons")) {
View Full Code Here

  protected void init() {
    add(pnlInput, BorderLayout.CENTER);

    pnlButtons = new JPanel();
    btnExecute = new JPrettyButton("Execute");
    btnExecute.addActionListener(new ExecuteAction(this));

    pnlButtons.add(btnExecute);

    add(pnlButtons, BorderLayout.SOUTH);
View Full Code Here

TOP

Related Classes of dan.swing.JPrettyButton

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.