Examples of locationToIndex()


Examples of javax.swing.JList.locationToIndex()

  }

  private void EventCullingPanel_SelectedEventCullingListBoxMouseMoved(
      java.awt.event.MouseEvent evt) {// GEN-FIRST:event_EventCullingPanel_SelectedEventCullingListBoxMouseMoved
    JList theList = (JList) evt.getSource();
    int index = theList.locationToIndex(evt.getPoint());
    if (index > -1) {
      String text = SelectedEventCullersList.get(index).tooltipText();
      theList.setToolTipText(text);
    }
  }// GEN-LAST:event_EventCullingPanel_SelectedEventCullingListBoxMouseMoved
View Full Code Here

Examples of javax.swing.JList.locationToIndex()

  private void EventSetsPanel_SelectedEventSetListBoxMouseMoved(
      java.awt.event.MouseEvent evt) {// GEN-FIRST:event_EventSetsPanel_SelectedEventSetListBoxMouseMoved
    if (!SelectedEventDriverList.isEmpty()) {
      JList theList = (JList) evt.getSource();
      int index = theList.locationToIndex(evt.getPoint());
      if (index > -1) {
        String text = SelectedEventDriverList.get(index).tooltipText();
        theList.setToolTipText(text);
      }
    }
View Full Code Here

Examples of javax.swing.JList.locationToIndex()

  }// GEN-LAST:event_EventSetsPanel_SelectedEventSetListBoxMouseClicked

  private void EventSetsPanel_EventSetListBoxMouseMoved(
      java.awt.event.MouseEvent evt) {// GEN-FIRST:event_EventSetsPanel_EventSetListBoxMouseMoved
    JList theList = (JList) evt.getSource();
    int index = theList.locationToIndex(evt.getPoint());
    if (index > -1) {
      String text = EventDriverMasterList.get(index).tooltipText();
      theList.setToolTipText(text);
    }
  }// GEN-LAST:event_EventSetsPanel_EventSetListBoxMouseMoved
View Full Code Here

Examples of javax.swing.JList.locationToIndex()

  }

  private void CanonicizersPanel_SelectedCanonicizerListBoxMouseMoved(
      java.awt.event.MouseEvent evt) {// GEN-FIRST:event_CanonicizersPanel_SelectedCanonicizerListBoxMouseMoved
    JList theList = (JList) evt.getSource();
    int index = theList.locationToIndex(evt.getPoint());
    if (index > -1) {
      String text = SelectedCanonicizerList.get(index).getFirst()
          .tooltipText();
      theList.setToolTipText(text);
    }
View Full Code Here

Examples of javax.swing.JList.locationToIndex()

  }// GEN-LAST:event_CanonicizersPanel_SelectedCanonicizerListBoxMouseClicked

  private void CanonicizersPanel_CanonicizerListBoxMouseMoved(
      java.awt.event.MouseEvent evt) {// GEN-FIRST:event_CanonicizersPanel_CanonicizerListBoxMouseMoved
    JList theList = (JList) evt.getSource();
    int index = theList.locationToIndex(evt.getPoint());
    if (index > -1) {
      String text = CanonicizerMasterList.get(index).tooltipText();
      theList.setToolTipText(text);
    }
  }// GEN-LAST:event_CanonicizersPanel_CanonicizerListBoxMouseMoved
View Full Code Here

Examples of javax.swing.JList.locationToIndex()

  }// GEN-LAST:event_AnalysisMethodPanel_DistanceFunctionsListBoxMouseClicked

  private void AnalysisMethodPanel_DistanceFunctionsListBoxMouseMoved(
      java.awt.event.MouseEvent evt) {// GEN-FIRST:event_AnalysisMethodPanel_DistanceFunctionsListBoxMouseMoved
    JList theList = (JList) evt.getSource();
    int index = theList.locationToIndex(evt.getPoint());
    if (index > -1) {
      String text = DistanceFunctionsMasterList.get(index).tooltipText();
      theList.setToolTipText(text);
    }
  }// GEN-LAST:event_AnalysisMethodPanel_DistanceFunctionsListBoxMouseMoved
View Full Code Here

Examples of tvbrowser.ui.settings.channel.ChannelJList.locationToIndex()

  private void restoreForPopup() {
    final MouseAdapter listener = new MouseAdapter() {
      public void mousePressed(MouseEvent e) {
        if (SwingUtilities.isRightMouseButton(e)) {
          final ChannelJList channelJList = (ChannelJList) e.getSource();
          channelJList.setSelectedIndex(channelJList
              .locationToIndex(e.getPoint()));
        }
        showPopup(e);
      }
View Full Code Here

Examples of tvbrowser.ui.settings.channel.ChannelJList.locationToIndex()

   */
  private void showPopup(MouseEvent e) {
    if (e.isPopupTrigger()) {
      final ChannelJList channelJList = (ChannelJList) e.getSource();
      new ChannelContextMenu(e, (Channel) channelJList.getModel().getElementAt(
          channelJList.locationToIndex(e.getPoint())),
          this);
    }
  }

  /**
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.