About 13,400,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 uses AWT to …

  2. Getting a HeadlessException: No X11 DISPLAY variable was set

    Exception in thread "main" java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which requires it. at java.awt.GraphicsEnvironment.

  3. fonts - How do I configure simple Java fontconfig.properties file for ...

    Apr 4, 2020 · Seen some examples, but they are not very clear, I only need fonts for one task in my application so what I would like to know is a minimal valid fontconfig.properties file on a linux server. …

  4. Java Can't connect to X11 window server using 'localhost:10.0' as the ...

    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.

  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 your application. First, …

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

  7. 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 java.awt.EventQueue.invokeLater and …

  8. How to Change Font Size in drawString Java - Stack Overflow

    Aug 15, 2013 · The answer below is mostly right. Start with the question slightly reworded. How do I change the font size of a g or g2d drawstring object? First create your g (or g2d) drawstring object …

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

    There is no performance benefit of setting java.awt.headless=true if you're not using AWT features. AWT features are loaded on-demand. As explained in the linked article, headless mode is useful for …

  10. java - How to use FileDialog? - Stack Overflow

    Aug 26, 2011 · I created an interface and I'd like to add a function that allows user to open a file. I'm using AWT. I don't understand how to use FileDialog. Can you please give me an example or a good …