About 8,850,000 results
Open links in new tab
  1. What is the difference between Swing and AWT? - Stack Overflow

    Jan 3, 2009 · AWT is a Java interface to native system GUI code present in your OS. It will not work the same on every system, although it tries. Swing is a more-or-less pure-Java GUI. It …

  2. Java + Windows RDP disconnect causes Java Headless Exception

    Dec 9, 2024 · Try modifying your application to handle AWT errors gracefully. Use GraphicsEnvironment.isHeadless () to determine the state dynamically and disable UI …

  3. Java Can't connect to X11 window server using 'localhost:10.0' as …

    Now I just get "Exception in thread "main" java.awt.AWTError: Can't connect to X11 window server using 'localhost:1.0' as the value of the DISPLAY variable." on Ubuntu 16.04.

  4. "No X11 DISPLAY variable" - what does it mean? - Stack Overflow

    export JAVA_TOOL_OPTIONS='-Djava.awt.headless=true' After that if the problem still persists, removing all packages that may interfere may be a radical solution.

  5. Java GUI frameworks. What to choose? Swing, SWT, AWT, SwingX, …

    Sep 9, 2011 · AWT, Swing and SWT are UI toolkits but I would certainly not call them "frameworks". Frameworks are based upon a given UI toolkit and provide the glue to build …

  6. 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 …

  7. What is the benefit of setting java.awt.headless=true?

    Note that the JVM contains heuristics that determine the value of java.awt.headless if it's not explicitly set. For example, on Linux if the DISPLAY environment variable is not set, …

  8. Headless exception in java - Stack Overflow

    Dec 26, 2012 · I heard that when we use awt or swing, while creating a FRAME, an unchecked exception may be thrown which is "Headless exception". I never got this exception. Can …

  9. java - Popup Message boxes - Stack Overflow

    Aug 16, 2011 · } private static final Toolkit AWT_TOOLKIT = Toolkit.getDefaultToolkit(); private static final Clipboard CLIPBOARD = AWT_TOOLKIT.getSystemClipboard(); } The full class …

  10. awt - How to rotate text with Graphics2D in Java? - Stack Overflow

    Nov 2, 2014 · Continue to help good content that is interesting, well-researched, and useful, rise to the top! To gain full voting privileges,