Skip to main content

Questions tagged [awt]

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

3 votes
1 answer
65 views

I was looking for a way to adjust saturation and lightness of java.awt.Colors that don't expose that kind of API I wrote my own ...
Sergey's user avatar
  • 739
1 vote
1 answer
339 views

Put together a RadioMenu class that can use a Enum to generate a Single-Selection Radio Button Menu. My main question is about whether there's a way to remove the ...
Tim Hunter's user avatar
1 vote
3 answers
563 views

I've decided it would be best to break this project down into several parts. Consider this Part 1(GUI Design). I'm looking for help making 2 main improvements: Whenever I make a GUI, its always very ...
Grewal_Creator's user avatar
2 votes
0 answers
392 views

I have an assignment to create a GUI with a keyboard and text area. Conceptually, the user would type on the physical keyboard and the respective key would change background on screen to reflect that ...
legoMyEgo's user avatar
  • 167
1 vote
2 answers
15k views

This is my first graphical application I have made in my life (except HTML and Javascript-Applications, if that counts). It's a simple implementation of Cookie Clicker, the famous browser game. ...
Dexter Thorn's user avatar
  • 2,174
6 votes
2 answers
2k views

I made a class capable of moving Polygons around on a Polygon in a mostly smooth manner. Disclaimer: this was part of a school project (thus the use of Polygon rather than Image), but this code is ...
CAD97's user avatar
  • 1,944
2 votes
3 answers
3k views

I am new to java and graphics, and I am creating a java program that draws a star. It took me a few hours, but I finally have it drawing a star, but I am wondering if there is a better way to write ...
Brow's user avatar
  • 31
3 votes
1 answer
2k views

I made this game which should imitate a spaceship and obstacles (planets). Move spaceship and try to hit everything. I will add some others features and functionality (better images or whatever). I ...
Newbie's user avatar
  • 710
3 votes
0 answers
73 views

This is my very first application written in Java and so I finalized it, solely because it occurred to be my thesis. It is a very simple program that lists categories (Northwind database is used as a ...
Edenia's user avatar
  • 1,588
1 vote
1 answer
408 views

I have this project that should continuously animating using for loop. Also I want to include variations on the position where the ball pass through. Can anyone please check my code if I am following ...
Jay Gorio's user avatar
7 votes
3 answers
15k views

One of my assignments was to create a chessboard. In this assignment I could not use an array, or a form of list or what not. Below is my code for the creation of the chessboard: ...
R. Holland's user avatar
5 votes
2 answers
264 views

For this next assignment, my job was to create a GUI with a button that changes text and color when clicked, and a slider that updates a label (with a TitledBorder) ...
syb0rg's user avatar
  • 21.9k
12 votes
2 answers
371 views

About / Background This is indirectly a follow up from: General Game Loop 3.0, if you prefer to test against it, feel free to. That code is very outdated now though. A test suite is given at the end. ...
Emz's user avatar
  • 1,044
4 votes
1 answer
9k views

Three days ago I wrote about a Java Dice Roller I wrote. I've now added a GUI to that program. Here it is: DiceRollerGUI.java: ...
user avatar
1 vote
1 answer
271 views

I am using the java.awt.Rectangle class to construct subsets of a GEOTIFF file. In order to do this I would need to specify the x,y offsets, height and width of ...
user avatar

15 30 50 per page