I am developing an AWT application. It runs smoothly on single monitor. However, when used with a multiple monitor set up:
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.
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
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
I have code: import java.awt.Dimension; import java.util.Observable; import java.util.Observer; import javax.swing.JButton;
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
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.
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
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:
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{