commit-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[commit-cp] [bugs #11607] IllegalComponentStateException in ToolTipManag


From: Marko Kreen
Subject: [commit-cp] [bugs #11607] IllegalComponentStateException in ToolTipManager
Date: Sat, 15 Jan 2005 15:12:28 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041219 Firefox/1.0 (Debian package 1.0+dfsg.1-1)

This is an automated notification sent by Savannah.
It relates to:
                bugs #11607, project classpath

==============================================================================
 OVERVIEW of bugs #11607:
==============================================================================

URL:
  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=11607>

                 Summary: IllegalComponentStateException in ToolTipManager
                 Project: classpath
            Submitted by: mkz
            Submitted on: Sat 01/15/2005 at 15:12
                Category: None
                Severity: 5 - Average
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
        Platform Version: None

    _______________________________________________________




Click on File->Open fast, before tooltip appears.



--------------------------------

import javax.swing.*;

public class test extends JFrame {

    public test() {

        JMenuItem mi0 = new JMenuItem("Open");

        mi0.setToolTipText("qwe");



        JMenu m1 = new JMenu("File");

        m1.add(mi0);



        JMenuBar mb = new JMenuBar();

        mb.add(m1);

        setJMenuBar(mb);



        setSize(300, 200);

    }

    public static void main(String [] args) {

        JFrame f = new test();

        f.show();

    }

}



--------------------------------

$ jamvm-cvs test

Exception during event dispatch:

java.awt.IllegalComponentStateException: component not showing

   at java.awt.Component.getLocationOnScreen (Component.java:1152)

   at javax.swing.SwingUtilities.convertPointToScreen
(SwingUtilities.java:328)

   at javax.swing.ToolTipManager.showTip (ToolTipManager.java:525)

   at javax.swing.ToolTipManager.access$1 (ToolTipManager.java:58)

   at javax.swing.ToolTipManager$insideTimerAction.actionPerformed
(ToolTipManager.java:131)

   at javax.swing.Timer.fireActionPerformed (Timer.java:271)

   at javax.swing.Timer.fireActionPerformed (Timer.java:279)

   at javax.swing.Timer.drainEvents (Timer.java:105)

   at javax.swing.Timer.access$0 (Timer.java:51)

   at javax.swing.Timer$1.run (Timer.java:88)

   at java.awt.event.InvocationEvent.dispatch (InvocationEvent.java:191)

   at java.awt.EventQueue.dispatchEvent (EventQueue.java:493)

   at java.awt.EventDispatchThread.run (EventDispatchThread.java:75)








==============================================================================

This item URL is:
  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=11607>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]