List of usage examples for java.awt.event MouseEvent getClickCount
public int getClickCount()
From source file:ded.ui.DiagramController.java
@Override public void mouseClicked(MouseEvent e) { this.eventReceived(e); // Double-click on control to edit it. if (SwingUtilities.isLeftMouseButton(e) && (e.getClickCount() == 2)) { Controller c = this.hitTest(e.getPoint(), null); if (c != null) { c.edit();/*w ww . j av a 2 s .c om*/ } } }
From source file:br.com.atmatech.sac.view.ViewAtendimento.java
private void jTtdclienteMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTtdclienteMouseClicked // TODO add your handling code here: if (evt.getClickCount() == 2) { clienteSelecionado();//from w ww . j a va2 s . c o m } }
From source file:ru.apertum.qsystem.client.forms.FReception.java
private void listUsersMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_listUsersMouseClicked if (evt.getClickCount() > 1 && listUsers.getSelectedIndex() != -1) { buttonRefreshUserActionPerformed(null); }//w ww .ja va 2 s. c om }
From source file:br.com.atmatech.sac.view.ViewAtendimento.java
private void jTtdtecnicoMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTtdtecnicoMouseClicked // TODO add your handling code here: if (evt.getClickCount() == 2) { clickTecnico();/*from w ww . j a v a 2 s .c o m*/ jDtecnico.setVisible(false); jTsolicitante.requestFocusInWindow(); } }
From source file:org.martin.ftp.gui.GUIClient.java
private void tblSearchMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tblSearchMouseReleased if (evt.getClickCount() == 2) try {//from w w w . j a v a 2 s . c om goToFile(); } catch (IOException ex) { Logger.getLogger(GUIClient.class.getName()).log(Level.SEVERE, null, ex); } }
From source file:ru.apertum.qsystem.client.forms.FReception.java
private void treeServicesMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_treeServicesMouseClicked if (evt.getClickCount() > 1) { final TreePath selectedPath = treeServices.getSelectionPath(); if (selectedPath != null) { tabbedPaneService.setSelectedComponent(panelLineState); refreshLines();// w ww . j a v a2 s. com } } }
From source file:ru.apertum.qsystem.client.forms.FReception.java
private void tableUsersMonMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tableUsersMonMouseClicked if (evt.getClickCount() > 1 && tableUsersMon.getSelectedRow() != -1) { listUsers.setSelectedValue(tableUsersMon.getModel().getValueAt(tableUsersMon.getSelectedRow(), 0), true);/*from ww w . j ava 2 s .com*/ tabsPane.setSelectedComponent(panelUsers); buttonRefreshUserActionPerformed(null); } }
From source file:org.martin.ftp.gui.GUIClient.java
private void lblFolderIconMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lblFolderIconMouseReleased if (evt.getClickCount() >= 2) { try {// w ww. j a v a 2s . c om lblIcon.setIcon(lblFolderIcon.getIcon()); settings.setIcon(pathIconFolder); lblFolderIcon.setBackground(Color.CYAN); dialogSetIcon.hide(); } catch (IOException ex) { Logger.getLogger(GUIClient.class.getName()).log(Level.SEVERE, null, ex); } } else { lblFolderIcon.setBackground(Color.CYAN); lblCloudIcon.setBackground(Color.LIGHT_GRAY); } }
From source file:ru.apertum.qsystem.client.forms.FReception.java
private void listUsersOfServiceMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_listUsersOfServiceMouseClicked if (evt.getClickCount() > 1 && listUsersOfService.getSelectedIndex() != -1) { listUsers.setSelectedValue(/*from ww w . j av a 2 s. c o m*/ listUsersOfService.getModel().getElementAt(listUsersOfService.getSelectedIndex()), true); tabsPane.setSelectedComponent(panelUsers); buttonRefreshUserActionPerformed(null); } }
From source file:org.martin.ftp.gui.GUIClient.java
private void lblCloudIconMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lblCloudIconMouseReleased if (evt.getClickCount() >= 2) { try {// www .j a v a 2 s. c o m lblIcon.setIcon(lblCloudIcon.getIcon()); settings.setIcon(pathIconCloud); lblCloudIcon.setBackground(Color.CYAN); dialogSetIcon.hide(); } catch (IOException ex) { Logger.getLogger(GUIClient.class.getName()).log(Level.SEVERE, null, ex); } } else { lblCloudIcon.setBackground(Color.CYAN); lblFolderIcon.setBackground(Color.LIGHT_GRAY); } }