ボタンを作成しましたが、これらが必要です:
ユーザーがボタンをクリックすると、3 秒間押したままになります。3 秒後、ボタンは再び押せるようになります。そのため、ユーザーは 3 秒待たないとボタンを再度クリックできません。私はこれらを試しました:
{
    button3 = new Button(c20, SWT.PUSH | SWT.CENTER);
    button3.setText("QUERY");
    button3.setBounds(205, 131, 62, 40);
    button3.addSelectionListener(new SelectionListener() {
        public void widgetSelected(SelectionEvent event) {
            try {
                start_query();
            } catch (IOException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
        }
        setPressedIcon();///??
        public void widgetDefaultSelected(SelectionEvent event) {
        }
    });
}
何か提案はありますか?