The Abstract Window Toolkit (AWT) is Java's original platform-independent windowing, graphics, and user-interface widget toolkit.

learn more…| top users | synonyms

0
votes
1answer
40 views

Why is this not doing anything?

For no apparent reason, the following code "stops" after printing out Will be drawing. private void drawMaps() {System.out.println("Will be drawing...");bs=display.getCanvas()....
0
votes
1answer
19 views

I am having trouble to set color to my Greenfoot MyWorld class

I am new to programming and we have an assignment about making a Greenfoot game. now I am trying to set some colors to MyWorld but having some problems. My code in MyWorld file is public ...
0
votes
0answers
24 views

Java. Using setDisplayMode resizes screen with wrong dimension

I'm trying to create a simple 2d platformer game but i had problems using the method device.setDisplayMode(displayMode). I'm really confused because i had this problem only on certain computers (on ...
0
votes
1answer
19 views

How to hide window

I have two jframe windows and I want to hide the NewJFrameSplash window after a while but I am having trouble succeeding with setVisible(true)What can I be doing wrong?as the code shows I start the ...
0
votes
1answer
12 views

Problems scaling JFrame to proper size using pack()

First semester CS student. I'm working on a self-motivated project that was inspired by a previous assignment.Using swing and awt, I'm trying to create a JFrame and painting inside it, but I can't ...
1
vote
0answers
54 views

How I can rotate image by pitch/yaw/roll in Java? [on hold]

I have an Image object and I should rotate(transform) it by pitch, roll, yaw angles.For details:I receive from the server the next angle's values:{"pitch": 0.0,"roll": -16.9,"...
0
votes
0answers
16 views

Java Swing turn Image into Shape [duplicate]

Is it possible to create a java.awt.Shape by using the visible pixels of a bufferedimage? (ignoring the alpha channel)I didn't found any direct method in the BufferedImage.
0
votes
2answers
19 views

Forward mouse input to jxbrowser running in background

I am trying to embed jxbrowser into a opengl game as a gui.(Actually it's Minecraft, but not relevant in this case) The drawing part is complete. I can draw the browser UI at anywhere as a quad. ...
-4
votes
0answers
15 views

The right most menu bar doesn't appear completely

I have explained the problem in the image link below. In advance, many tnx for helping:https://www.dropbox.com/s/b8fhzciwms4shg9/Screenshot%20at%20Feb%2014%2020-28-43.png?dl=0My gui code is:f=...
0
votes
1answer
30 views

Displaying axes and labels - bar chart java

I have program which counts occurance of numbers in .txt file and displays it as a histogram(bar chart). I want to add y and x axes, but I don't know how to do it. Also I want to display labels with ...
0
votes
1answer
20 views

Draw Graphics2D Shape onto an Image

The following is a snippet from a larger program, where the goal is to draw a red circle onto an image. The resources I am using to accomplish this are from the following to sitesCreate a ...
0
votes
1answer
27 views

Why is the java getPeer call deprecated?

I'm attempting to find the best way of obtaining the X ID code of the backing windows of heavyweight AWT panels. Why is the java.awt.Component.getPeer command listed as deprecated? Is there a security ...
0
votes
1answer
21 views

Java - Centering Text (on a Canvas)

thanks for checking out my question.I am working a menu for the game that I'm making, and I want to center the game's title on the main menu. I've looked at several questions here on Stack Overflow, ...
0
votes
1answer
29 views

Display transparent text from Java program

I want to create a Java application that displays text on the screen, in such a way that it is not contained in any form or canvas, at least not any visible one, but rather just display it on top of ...
0
votes
0answers
12 views

Replacement for the deprecated method java.awt.Toolkit.getFontMetrics()

I need to replace this deprecated method, but the suggested alternative i.e. using LineMetrics class doesn't serve the purpose.I'm using the method stringWidth() in FontMetrics to calculate the ...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,