Here you can find the source of getWFStep(Vector
public static JButton getWFStep(Vector<JButton> actionButtons, String action)
//package com.java2s; //License from project: Apache License import java.util.Vector; import javax.swing.JButton; public class Main { public static JButton getWFStep(Vector<JButton> actionButtons, String action) { for (int i = 0; i < actionButtons.size(); i++) { JButton button = actionButtons.elementAt(i); String[] cmnd = button.getActionCommand().split("="); String stepAction = cmnd[1]; if (stepAction.equals(action)) return button; }// w w w . j av a2 s. c o m return null; } }