Category "awt"

Drawing with drawString doesn't look good

The result of drawString with the same font and size in java The appearance is different when drawn with the same font and size in a painter (or word). Drawing

How do I align a JPanel centered underneath another JPanel?

I have the following GUI that I'm working on. import javax.swing.*; import java.awt.*; public class gui{ public static void main(String[] args) { /

How to Remove Red JFormDesigner Evaluation Text?

I installed JFormDesigner for IntelliJ with an evaluation license to convert some forms from NetBeans, and upon realizing that it put a huge ugly watermark on e

How to combine rectangles?

I am working with the Java Swing library. I have two rectangles of the same width and height and the same coordinates. I want to combine them into one so I can

Drawing multiple objects in Java [duplicate]

I would like to draw multiple objects like ovals, rectangles and lines together. But somehow I can draw only an object. When I try to draw ano

Can't close JFrame, from click inside JPanel

I have the following situation: I have a JFrame(GridBagLayout) with 3 JPanels in it (headerPanel, bodyPanel, footerPanel); On the bodyPanel I have a login butto

How do I create a frame with images to act as a tool tip in Java?

I've been struggling with an issue for 2 days now and I keep running into walls. When I mouse over a task on my first window I want another frame to pop up and

Debugging java swing application in eclipse

I have a large application made in java swing. Its a children drawing app. I need to put some restrictions, for example, if they draw a rectangle, then they can

The best layout for this image?

I don't know which is the best layout to use for this image, I think maybe grid layout (5*1) may be helpful but I can't add multiple components in one grid layo