Package javax.swing

Examples of javax.swing.ToolTipManager$outsideTimerAction


public class setInitialDelay implements Testlet {

    public void test(TestHarness harness)
    {
      ToolTipManager m = ToolTipManager.sharedInstance();
      m.setInitialDelay(123);
      harness.check(m.getInitialDelay(), 123);
     
      // try zero
      m.setInitialDelay(0);
      harness.check(m.getInitialDelay(), 0);
     
      // try negative
      boolean pass = false;
      try
      {
        m.setInitialDelay(-1);
      }
      catch (IllegalArgumentException e)
      {
        pass = true;
      }
View Full Code Here


      this.defaultDirectoryForSaveAs = null;
      this.enforceFileExtensions = true;

      // initialize ChartPanel-specific tool tip delays with
      // values the from ToolTipManager.sharedInstance()
      ToolTipManager ttm = ToolTipManager.sharedInstance();
      this.ownToolTipInitialDelay = ttm.getInitialDelay();
      this.ownToolTipDismissDelay = ttm.getDismissDelay();
      this.ownToolTipReshowDelay = ttm.getReshowDelay();

      this.zoomAroundAnchor = false;
      this.zoomOutlinePaint = Color.blue;
      this.zoomFillPaint = new Color(0, 0, 255, 63);
View Full Code Here

   @Override
   public void mouseEntered(MouseEvent e)
   {
      if (!this.ownToolTipDelaysActive)
      {
         ToolTipManager ttm = ToolTipManager.sharedInstance();

         this.originalToolTipInitialDelay = ttm.getInitialDelay();
         ttm.setInitialDelay(this.ownToolTipInitialDelay);

         this.originalToolTipReshowDelay = ttm.getReshowDelay();
         ttm.setReshowDelay(this.ownToolTipReshowDelay);

         this.originalToolTipDismissDelay = ttm.getDismissDelay();
         ttm.setDismissDelay(this.ownToolTipDismissDelay);

         this.ownToolTipDelaysActive = true;
      }
   }
View Full Code Here

   public void mouseExited(MouseEvent e)
   {
      if (this.ownToolTipDelaysActive)
      {
         // restore original tooltip dealys
         ToolTipManager ttm = ToolTipManager.sharedInstance();
         ttm.setInitialDelay(this.originalToolTipInitialDelay);
         ttm.setReshowDelay(this.originalToolTipReshowDelay);
         ttm.setDismissDelay(this.originalToolTipDismissDelay);
         this.ownToolTipDelaysActive = false;
      }
   }
View Full Code Here

    public void invokeModify() {
      this.insertMode = false;
        this.pack();
    setLocationRelativeTo(getOwner());
    updateEditor();
        ToolTipManager toolTipManager = ToolTipManager.sharedInstance();
        toolTipManager.registerComponent(this.instructionCombo);
        super.setVisible(true);
        toolTipManager.unregisterComponent(this.instructionCombo);
    }
View Full Code Here

            updateEditor();
      }       
        };
        this.instructionCombo.addItemListener(il);
        updateEditor();
        ToolTipManager toolTipManager = ToolTipManager.sharedInstance();
        toolTipManager.registerComponent(this.instructionCombo);
        super.setVisible(true);
        toolTipManager.unregisterComponent(this.instructionCombo);
        this.instructionCombo.removeItemListener(il);
    }
View Full Code Here

  public EditorTab() {
    this.setLayout(new BorderLayout());
    this.list.setCellRenderer(this.renderer);
    this.list.setTransferHandler(new BytecodeEditorTransferHandler(this));
        ToolTipManager toolTipManager = ToolTipManager.sharedInstance();
        toolTipManager.registerComponent(this.list);

    this.add(this.label, BorderLayout.NORTH);
    this.add(this.editorScrollPane, BorderLayout.CENTER);
   
    this.list.addListSelectionListener(new ListSelectionListener() {
View Full Code Here

        this.defaultDirectoryForSaveAs = null;
        this.enforceFileExtensions = true;

        // initialize ChartPanel-specific tool tip delays with
        // values the from ToolTipManager.sharedInstance()
        ToolTipManager ttm = ToolTipManager.sharedInstance();
        this.ownToolTipInitialDelay = ttm.getInitialDelay();
        this.ownToolTipDismissDelay = ttm.getDismissDelay();
        this.ownToolTipReshowDelay = ttm.getReshowDelay();

        this.zoomAroundAnchor = false;
        this.zoomOutlinePaint = Color.blue;
        this.zoomFillPaint = new Color(0, 0, 255, 63);
View Full Code Here

     *
     * @param e  the mouse event.
     */
    public void mouseEntered(MouseEvent e) {
        if (!this.ownToolTipDelaysActive) {
            ToolTipManager ttm = ToolTipManager.sharedInstance();

            this.originalToolTipInitialDelay = ttm.getInitialDelay();
            ttm.setInitialDelay(this.ownToolTipInitialDelay);

            this.originalToolTipReshowDelay = ttm.getReshowDelay();
            ttm.setReshowDelay(this.ownToolTipReshowDelay);

            this.originalToolTipDismissDelay = ttm.getDismissDelay();
            ttm.setDismissDelay(this.ownToolTipDismissDelay);

            this.ownToolTipDelaysActive = true;
        }
    }
View Full Code Here

     * @param e  the mouse event.
     */
    public void mouseExited(MouseEvent e) {
        if (this.ownToolTipDelaysActive) {
            // restore original tooltip dealys
            ToolTipManager ttm = ToolTipManager.sharedInstance();
            ttm.setInitialDelay(this.originalToolTipInitialDelay);
            ttm.setReshowDelay(this.originalToolTipReshowDelay);
            ttm.setDismissDelay(this.originalToolTipDismissDelay);
            this.ownToolTipDelaysActive = false;
        }
    }
View Full Code Here

TOP

Related Classes of javax.swing.ToolTipManager$outsideTimerAction

Copyright © 2018 www.massapicom. 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.