Java Code Examples for javax.swing.Timer#setActionCommand()

The following examples show how to use javax.swing.Timer#setActionCommand() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ImageORTable.java    From Cognizant-Intelligent-Test-Scripter with Apache License 2.0 5 votes vote down vote up
private void init() {
    setLayout(new BorderLayout());
    cardPanel.add(new JScrollPane(table), "Table");
    cardPanel.add(imagePanel, "Image");
    add(cardPanel, BorderLayout.CENTER);
    add(toolBar, BorderLayout.NORTH);
    findOnScreenTimer = new Timer(1000, this);
    findOnScreenTimer.setActionCommand("FindOnScreenTimer");
    findOnScreenTimer.setRepeats(false);
}
 
Example 2
Source File: ImportForm.java    From azure-devops-intellij with MIT License 5 votes vote down vote up
private void createUIComponents() {
    userAccountPanel = new UserAccountPanel();
    refreshButton = new JButton(AllIcons.Actions.Refresh);

    // Create timer for filtering the list
    timer = new Timer(400, null);
    timer.setInitialDelay(400);
    timer.setActionCommand(CMD_PROJECT_FILTER_CHANGED);
    timer.setRepeats(false);
}
 
Example 3
Source File: SelectWorkItemsForm.java    From azure-devops-intellij with MIT License 5 votes vote down vote up
public SelectWorkItemsForm() {
    $$$setupUI$$$();
    // Create timer for filtering the list
    timer = new Timer(400, null);
    timer.setInitialDelay(400);
    timer.setActionCommand(CMD_FILTER_CHANGED);
    timer.setRepeats(false);
}
 
Example 4
Source File: CheckoutForm.java    From azure-devops-intellij with MIT License 5 votes vote down vote up
private void createUIComponents() {
    // Create user account panel
    userAccountPanel = new UserAccountPanel();
    refreshButton = new JButton(AllIcons.Actions.Refresh);

    // Create timer for filtering the list
    timer = new Timer(400, null);
    timer.setInitialDelay(400);
    timer.setActionCommand(CMD_REPO_FILTER_CHANGED);
    timer.setRepeats(false);
}
 
Example 5
Source File: TabFormImpl.java    From azure-devops-intellij with MIT License 5 votes vote down vote up
/**
 * Create the search filter for the toolbar
 */
protected void createFilterToolbar() {
    // Create timer for filtering the list
    timer = new Timer(400, null);
    timer.setInitialDelay(400);
    timer.setActionCommand(CMD_FILTER_CHANGED);
    timer.setRepeats(false);

    searchFilter = new SearchFilter();
    //initialize to empty string
    searchFilter.setFilterText(StringUtils.EMPTY);
}