awt
Blank Component Render with Multiple Monitor
I am developing an AWT application. It runs smoothly on single monitor. However, when used with a multiple monitor set up:[详细]
2023-04-12 11:52 分类:问答Single line JTextArea
When you type into a JTextArea, it automatically adjust it\'s size to fit the text typed in. A JTextField, however, does not seem to do that.[详细]
2023-04-12 09:44 分类:问答How to get X and Y index of element inside GridLayout?
I am studying a java tutorial and saw that the way to find the x/y indexes of a JButton inside a GridLayout is to traverse a bidimensional array of buttons b which is associated to the layout and chec[详细]
2023-04-11 23:04 分类:问答The Page Turn Effect in Java Swing/AWT
I would like to implement the page turn effect in Swing/AWT. The theory is pretty much explained here. My question is that since the page is to contain text, which is the correct swing/awt component t[详细]
2023-04-11 05:13 分类:问答AWT event thread interruption
I have code: import java.awt.Dimension; import java.util.Observable; import java.util.Observer; import javax.swing.JButton;[详细]
2023-04-10 22:45 分类:问答Combining shape objects to create a composite
i have a pr开发者_开发知识库ogram i have to do where i have to take individual shape objects and combine them to create a final car shape. we are given premade shapes such as front tire, back tire, bo[详细]
2023-04-10 15:57 分类:问答How to do Font Smoothing for AWT/Swing Application?
I need to do font smoothing for a AWT application on Windows System. On doing googling I came to know that I can set following VM argument in Eclipse.[详细]
2023-04-09 21:31 分类:问答How to make the image bounce horizontally?
I have an image(\"ball.gif\") that moves horizontally, the problem is how could I make the ball bounce when it reach the end of the size of the panel? I know this is not really difficult but I\'m just[详细]
2023-04-09 21:21 分类:问答Why isnt Rectangle2D.createUnion() working for me?
im trying to implement a getBounds() method, but i cant get union to work; i must not understand how union works. my code is the following:[详细]
2023-04-09 20:41 分类:问答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 分类:问答