Tag: AWT
Posts of Tag: AWT
  1. Java Program to Make a Simple Calculator Using AWT

    Java Program to Make a Simple Calculator Using AWT Hello everyone, in this program I am going to share a code to make a simple calculator in java using awt. This calculator works on two integer number...Learn More
  2. Difference between AWT and Swing in Java

    **Difference between AWT and Swing in Java** Here you will learn about difference between AWT and Swing in Java. AWT and Swing both are used to create GUI interface in Java. Both of them are used to perform a...Learn More
  3. Java Program to Take Screenshots

    Java Program to Take Screenshots There might be a situation where you guys want to take screen shots programmatically. So I am sharing a program that help you to take screen capture of your screen and save it ...Learn More
  4. Jtable not showing?

    The Table won't show in the window. Theres an outline, but no grid! Please help! tetris.java package com.diesal11; import com.diesal11.Board; import java.awt.BorderLayout; import javax.swing.JFrame; import j...Learn More
  5. mouse events on multiple polygons in java swing

    i am trying to write a code for my task. my task is, i have draw may polygons on a single panel by giving coordinate values. and aplly mouse moved event to those polygons. my problem is i can draw all polygons...Learn More
  6. What is the difference between Swing and AWT?

    Can someone please explain me what's the difference between Swing and AWT? Are there any cases where AWT is more useful/advised to use than swing or vice-versa? ...Learn More
  7. How could I get the number of visible windows of my app?

    Or more exact: I need to know on a window close event, if any other window is still visible. If not, System.exit(0) would be called. ...Learn More
  8. Add image from website to Frame in Java

    I'm trying to make a Frame from which I want to add an image from a website. Do I set the background as an image? import java.awt.*; import java.net.*; class NewFrame extends Frame { // Constructor. publi...Learn More
  9. MouseWheelListener java- possible to detect out side Frame?

    Is it possible to detect mouse scroll wheel out side a JFrame I mean like on the entire screen? I have looked up several sample codes but all of them seem to detect mouse scroll only inside their respective f...Learn More
  10. Java headless bicubic image resize

    I need to perform java image crop and resize without an X server. I tried several methods. the first method below works, but outputs a fairly ugly resized image (probably using nearest neighbor algorithm for th...Learn More
  11. How do you make such complex GUI in Java? Is it possible with Gwt? Or need to use something else?

    My goal is to make a simple GUI which almost look like this attached screenshot. But while using Awt, Swing i have never found yet such combo/buttons nor i have found something like transparent window which sh...Learn More
  12. 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.checkHeadless(Grap...Learn More