Top "Paintcomponent" questions

paintComponent (JComponent.

How to draw in JPanel? (Swing/graphics Java)

I'm working on a project in which I am trying to make a paint program. So far I've used Netbeans …

java swing jpanel draw paintcomponent
How to draw a circle with given X and Y coordinates as the middle spot of the circle?

I have developed a telecommunication application for locating signal strengths from the towers. I have used java swing and I'm …

java swing jpanel java-2d paintcomponent
How does paintComponent work?

This might be a very noob question. I'm just starting to learn Java I don't understand the operation of paintComponent …

java swing paintcomponent
Draw a circle with a radius and points around the edge

I'm really stuck on how to go about programming this. How to draw a circle in Java with a radius …

java swing drawing geometry paintcomponent
about drawing a Polygon in java

hi there i'm trying to improve myself about java2D and first of all i'm dealing with drawing polygons. However, …

java swing polygon java-2d paintcomponent
Java Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException

OK what I am trying to do here is create a game where the object/ball is controlled by clicking …

java swing nullpointerexception jpanel paintcomponent
Drawing an object using getGraphics() without extending JFrame

How can I draw an object without a class (which extends JFrame)? I found getGraphics method but it doesnt draw …

java swing graphics2d paintcomponent
JPanel Graphics clearing and repainting?

I have a JPanel with a paintComponent() function. I'll call it once, then when the user clicks a different JButton, …

java swing graphics jpanel paintcomponent
How to make a rectangle in Graphics in a transparent colour?

I'm trying to paint a rectangle on my application in a red shade but I need to make it sort …

java swing colors paintcomponent translucency
JPanel doesn't update until resize Jframe

I subclass JPanel to overwrite paintComponent(Graphics), I want to draw an image onto jpanel in a jframe. But my …

java swing user-interface paintcomponent