graphics2d
How can I make a counter-clockwise rotation of the image in java?
I have an image and I want it to move in a counter-clockwise direction and that is my problem. I have a code but it seems my code doesn\'t work properly. You can check my code if where I\'ve made my m[详细]
2023-04-12 20:12 分类:问答why is it only painting one of the components?
package puzzle; import java.awt.Color; import javax.swing.*; import java.util.*; public class Puzzle { Integer x = 50;[详细]
2023-04-12 15:42 分类:问答Java Graphics.fillPolygon: How to also render right and bottom edges?
When drawing polygons, Java2D leaves off the right and bottom edges.I understand why this is done.However, I would like to draw something that includes those edges.One thing that occurred to me was to[详细]
2023-04-11 22:18 分类:问答Java JPanel Paint Scaling
Following code 开发者_如何学Pythonwork for visualizing a molecule on a JPanel except it does not rescale when I change the size of JPanel at runtime. The Chemistry Development Kit is used for generati[详细]
2023-04-10 04:18 分类:问答how to validate only show me geometric shapes smaller than a JFrame
I can make a program to enter a series of values of geometric figures to show me开发者_Go百科 in a JFrame.[详细]
2023-04-09 21:12 分类:问答Java JFrame size and centre
I\'m working on a uni project which is to create a dice face using 2d graphics shapes. I have got that all done but I have a problem: I want my shape to change size when I adjust the window size, inst[详细]
2023-04-09 20:08 分类:问答Adding image in awt
I was trying to add an image in one of GridBagLayout cells. But i am not able to achieve it. public class imageInAwt extends Applet{[详细]
2023-04-09 03:16 分类:问答Java Painting a Triangle and Trying to use other Swing Objects
I am having a bit of an issue using Netbeans to design a GUI (Yeah im lazy :\\ ) and manually trying to paint a triangle onto the JFrame. The Swing Components are \'covered up\' until I press tab and[详细]
2023-04-07 09:30 分类:问答Rotate a Java Graphics2D Rectangle?
I have searched everywhere and I just cant find the answer. How do I rotate a Rectangle in java? Here is some of my code:[详细]
2023-04-07 07:39 分类:问答Making margins smaller - Java Printing
I am using this code to print on paper: //Overriden from printable interface public int print(Graphics g, PageFormat pageFormat, int pageIndex)[详细]
2023-04-06 21:46 分类:问答