paintcomponent
how can i put a JButton on an image?
I am trying to fix a JFrame where there will be a background image and on the image JButtons which will do some commands.I try to do it without layout because i want to put small buttons in some speci[详细]
2023-03-03 23:34 分类:问答Problems repainting in a JPanel Runnable
I am writing a program that开发者_高级运维 will play a song and have a JPanel displaying images during it. The song plays fine, the first image is drawn (I assume from the initial call to paintCompone[详细]
2023-03-03 21:18 分类:问答How to paint outside of paintComponent?
I have a开发者_Go百科 canvas that is drawing everything in a paintComponent() method. Is it possible to draw outside of paintComponent (without calling a method within paintComponent?)[详细]
2023-03-03 13:03 分类:问答why is paintComponent() never called by repaint()?
I\'ve been working on an program that draws custom JComponents onto a JLayeredPane however all calls to repaint() on the components seem to do nothing yet the paintComponent method is invoked automati[详细]
2023-03-03 10:25 分类:问答creating a pen tool, repainting issue - JAVA
I am trying to create a pen tool using mouse listeners: public void mouseDragged(MouseEvent e) { 开发者_StackOverflow社区imageL.setCoordinates(originalPos, e.getPoint());[详细]
2023-03-03 06:24 分类:问答Problem with calling repaint() and paintComponent() method, using mvc design pattern
I\'m creating a small game, you click buttons (up, down, left and right) to control a cat (represented by a rectangle) to chase a mouse (represented by another rectangle). Lame I know... anyway I\'m u[详细]
2023-02-26 02:53 分类:问答what is different between paintcomponent() and paintcomponents()?
I want to know what is different between paintcomponent() and 开发者_如何转开发paintcomponents()?[详细]
2023-02-24 23:42 分类:问答non-static method from static context
Why I cannot reffer? Do You know how to fix it? I would like to draw line by DDA algorithm. Please help.[详细]
2023-02-23 15:42 分类:问答How to find variable g in this code?
How to find variable g in this code? I would like to draw line using fillRect from paintComponent. Please help.[详细]
2023-02-23 03:33 分类:问答Paint foreign component (i.e. belonging to a different frame's content pane) in another component
Hallo all. I want to paint a foreign component (i.e. belonging to a different frame\'s content pane), lets call it frame B, inside a component in frame A.[详细]
2023-02-16 11:08 分类:问答