About 53 results
Open links in new tab
  1. swing - Why do I have to import java.awt.* AND java.awt.event.

    Jul 10, 2015 · "Am I actually required to import java.awt.event.* if I've already covered it with java.awt.*?" - Yes, you are required to do this. A import will only import the specified class …

  2. Difference between java.awt.* and java.awt.event.*

    Dec 5, 2010 · It's just two different packages. When you say import java.awt.* it imports only those classes which belong exactly to java.awt package, not to its subpackages. That's why when …

  3. java - Global Event Listeners with AWTEventListener & how to pull ...

    Dec 21, 2011 · 505, java.awt.event.MouseEvent[MOUSE_EXITED,(65,92),absolute(65,92),button=0,clickCount=0] …

  4. What is this java.awt.event error? - Stack Overflow

    Mar 3, 2009 · ANSWER: If you ever see these lines and are mistified like I was, here's what they mean. Thread[AWT-EventQueue-0] (Suspended (exception NullPointerException)) …

  5. Java Event-Dispatching Thread explanation - Stack Overflow

    Aug 8, 2024 · The event dispatch thread is a special thread that is managed by AWT. Basically, it is a thread that runs in an infinite loop, processing events. The …

  6. When do I need to import java.awt.*? If I want to ... - Stack Overflow

    Nov 26, 2013 · This will almost never be true. Most Java programs that are more than toy programs will need to use many libraries. For instance, most layout classes are held in the …

  7. Problemas con CRUD en java Exception in thread "AWT …

    Aug 9, 2021 · ¡Buenas gente! El problema es el siguiente, a la hora de agregar un cliente aveces se agrega y aveces tira el error Exception in thread "AWT-EventQueue-0" java.lang ...

  8. java - getText部分でAWT-EventQueue-0が発生する - スタック・ …

    Jul 8, 2017 · Javaのプログラムを勉強中で、テキストフィールドに入力した数字を取得しようとしているのですが、 Exception in thread "AWT-EventQueue-0" …

  9. Why does [import java.awt.*] not also include [import …

    Jul 24, 2012 · 6 import java.awt.*; This imports all classes under in the awt package, not subpackages. The main reason is that java packages are not nested, even if their names …

  10. java - Convert String to KeyEvents - Stack Overflow

    Aug 8, 2009 · Great example, remember when using this to have a static import for the key codes: import static java.awt.event.KeyEvent.*;