I'm new to Java applets and I have to make a program where the pupils of two eyes follow a cursor.
There is a box around the face and when I enter the box with the cursor the "eyes" are supposed to ...

I'm trying to do a program that shows an animation of how a cistern fills with time. The problema is that I can't get it to refresh everytime... Here's the code: It Works but it doesn't refresh in the ...

I have a black and white image and i would like to paint it with the color i picked without removing the image. When i start to paint its painting the image borders either.
I would like to still have ...

For a school-project, we've recieved a set amount of figures we're supposed to paint on a canvas with the normal Java-graphics method .paint(). This is supposed to be controlled with the help of a few ...

I have some code that creates a full screen icon in java and sets the background color to pink and the foreground color to red. However every time i run it, it never changes the background color to ...

i have a class that draws waveforms of audio. I'm drawing it in OnPaint function. Now i need to draw a line that shows where on the waveform we are at current moment. I can calculate the position but ...

I am trying to use this tutorial so that I can have a transparent button. It works fine for the main background, but it doesn't draw over the other children. If I use BringToFront() it then doesn't ...

In eclipse the paint is underlined and so it the parentheses after the g in (Graphics g). For paint I am getting that void is an invalid type for the variable paint, but this is the exact way it is ...

http://www.createjs.com/Demos/EaselJS/AlphaMaskReveal
Hi , I am interested in effect similar to demo above ,
but I would like instead of static image , can reveal a video background ,
effect would be ...

The question is fairly simple. Is there a way to keep the things drawn on a panel with Graphics everytime the Paint event fires?
Demonstrated on a simple program: Turn on a random pixel on the panel ...

Hi I am trying to get my program to move the shapes I create across the screen and for some reason its not working Im not sure whats happening? It has to be something small can anyone point me in the ...

Sorry for my bad English.
I have a picturebox where I draw 100000 shapes (but there may be more).
The drawing is made in the Paint Handler of the picturebox.
The problem is : When I Resize the form ...

I am working with hybrid android application where i need to pass color code from java class to html. My HTML code is expecting "#RGB", where as in my android code declared some color as Color.WHITE ...

After not being satisfied with the information I have found about creating a draggable image (JComponent), I set out to do it on my own. I have accomplished that, but really want to push it further ...

I'm still fairly new to java and I've been having trouble with the paint method.
when I learning how to use bufferedimages, I thought that the image sizes were a bit off relative to the frame size so ...

I need to write an applet that calculates the squares and cubes of the numbers from 0-10 and draws the resulting values in a table format as follows:
Using a for loop. I made the application and it ...

Loaded saved image directly from Google drive using get web content URL()
can able to load the saved image from the drive but cant able to update the loaded image using paint plugin
var imageData = ...

In my app I am using using a texView to display some text. I am using the below piece of code to wrap text by char.
textToBeShown = textToBeShown.replace(' ', '\u00A0');
When I calculate the number ...