Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
paint
- Page 1
Paint your own.....
Community Center
Geeks' Lounge
16 Years Ago
by The Dude
[url]http://artpad.art.com/artpad/painter/[/url] Why not
paint
the first thing that comes to mind :)
Paint - The BIG Picture
Programming
Software Development
14 Years Ago
by TahoeSands
… struggling with the "practical" application of the
paint
method with respect to OOP. I can write small apps… using
paint
(Graphics g) to draw/
paint
rectangles and lines within a JFrame. And … all my "drawing code" inside the overridden
paint
method, all the graphics get painted at the same time…
Re: Paint - The BIG Picture
Programming
Software Development
14 Years Ago
by JamesCherrill
… etc then call repaint() to trigger Swing to call your
paint
(...) method. ps: It's advised to override paintComponent, rather than…
Re: Paint - The BIG Picture
Programming
Software Development
14 Years Ago
by NormR1
…]put all my "drawing code" inside the overridden
paint
method, all the graphics get painted at the same time… or listener code before it calls the repaint method. The
paint
method then only does what it has been told to…
Re: paint method and graphics
Programming
Software Development
12 Years Ago
by hwoarang69
… while loop }/*** end of run method ***/ //############################### /***
paint
method ***/ public void
paint
(Graphics g) { super.
paint
(g); //redraw
paint
method. so it doesnt draw on…
paint method and graphics
Programming
Software Development
12 Years Ago
by hwoarang69
… and draphics2d the right way. public void
paint
(Graphics g) { super.
paint
(g); Graphics2D g2d = (Graphics2D) g; g2d.fillRect(x, y, …width, height); //player }/** end of
paint
method ***/ another question i had was in run method. i…
Re: paint method and graphics
Programming
Software Development
12 Years Ago
by JamesCherrill
…updates to your animation at regular intervals. The
paint
looks OK. Here's the simplest possible … - draws the model on the screen @Override public void
paint
(Graphics g) { // screen refresh - called by Swing … how many times this will be called. super.
paint
(g); // ensure background etc is painted g.…
paint() in java awt
Programming
Software Development
20 Years Ago
by vrc_sekhar
… an awt application in java, i want to call the
paint
() for drawing sytem time on a image through Graphics.drawString… time i call repaint() the image i drawn using the
paint
() is being repainted. so i want to overload the…
paint
() so that each time the image is not repainted. please …
Paint method don't work in swing, java:/
Programming
Software Development
14 Years Ago
by thes0mething
…(JFrame.EXIT_ON_CLOSE); panel.addKeyListener(new KeyThing()); panel.
paint
(gr); } public class KeyThing implements KeyListener {…} public void keyReleased(KeyEvent e) { } } public void
paint
(Graphics g) { if (ball==true) { g=panel.getGraphics…
Re: Paint method don't work in swing, java:/
Programming
Software Development
14 Years Ago
by JamesCherrill
…, ie horribly redundant 3. Override paintComponent, not
paint
4. panel.
paint
(gr); never call
paint
directly. call repaint() and let Swing do the…
Re: Paint method don't work in swing, java:/
Programming
Software Development
14 Years Ago
by thes0mething
…JFrame.EXIT_ON_CLOSE); super.add(panel); panel.setSize(MAXX, MAXY); panel.
paint
(); panel.addKeyListener(new KeyThing()); panel.setVisible(true); super.setVisible(true…java:31: cannot find symbol symbol : method
paint
() location: class javax.swing.JPanel panel.
paint
(); ^ 1 error Note: When I somehow …
Re: Paint method painting over Jlabel
Programming
Software Development
13 Years Ago
by JamesCherrill
… made the common mistake of overriding
paint
rather then paintComponent. JPanel's
paint
method calls
paint
for all its child objects as well… overridden it thus bypassing the calls to
paint
the label. Just override paintComponent instead of
paint
and let Swing do its work…
Paint() method resetting variables?
Programming
Software Development
12 Years Ago
by Benderx
… yF) { super(); xf1 = xF; yf1 = yF; } public void
paint
(Graphics g) { super.
paint
(g); g.drawLine(0, yLength/2, xLength, yLength/2… meaning that xf1 and yf1 are both 0 when the
paint
code is run (Also evidenced in the trace command which…
Re: paint method and graphics
Programming
Software Development
12 Years Ago
by JamesCherrill
… JPanel { public void paintComponent(Graphics g) { super.paintComponent(g); //redraw
paint
method. so it doesnt draw on top of each other…
Re: paint() in java awt
Programming
Software Development
20 Years Ago
by mcclth
try this: public void update (Graphics page) {
paint
(page); } That way, instead of updating the whole page (which erases first), it just draws to it.
Re: Paint Application In Java
Programming
Software Development
17 Years Ago
by Ezzaral
…WHITE); g2D.clearRect(0,0,getWidth(), getHeight()); //
paint
shape g2D.setColor(Color.BLUE); drawEllipse(g2D); }… = new PaintPanel(); JFrame frame = new JFrame("
Paint
"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.getContentPane().add(panel…
paint w/ vb.net
Programming
Software Development
16 Years Ago
by arshesander
Helo, i want to include
paint
application in my project but i dont know what to do? what i mean is do you any
paint
program using vb.net so that i can download?. i have no idea how to create it w/ my own.. thanks guys
Re: Paint question
Programming
Software Development
16 Years Ago
by Ezzaral
If you are wanting to
paint
the line over a grid of JButtons, you'll…/components/rootpane.html"]here[/URL]). The code to
paint
the lines will go in the paintComponent() method of …} /** This component will serve as the glass pane overlay to *
paint
over all of the other components. */ class OverlayPane extends JComponent…
Paint with Python-Pygame
Programming
Software Development
15 Years Ago
by computerfreak97
… develop a program using pygame that will let you "
paint
." There is just one problem, when I change the… = 0 rgbfont = pygame.font.Font(None, 12) pygame.display.set_caption('
Paint
in Python') while 1: screen.fill((255,255,255)) pygame…
Paint Event
Programming
Software Development
14 Years Ago
by OldQBasicer
… not Me.Close. I guess I don't understand the
paint
event. [CODE][/CODE]Public Class ThermometerForm Public intFillTop As Integer… Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.
Paint
Dim TimeNow As Date Dim TimeLater As Date Dim intWaitTime…
Re: Paint method don't work in swing, java:/
Programming
Software Development
14 Years Ago
by JamesCherrill
… method will finish executing before the Swing thread gets to
paint
anything on the screen. But with multiple threads you can…
Paint not painting properly
Programming
Software Development
13 Years Ago
by stinkypete
…HWND dummy; Canvas->Handle = GetDeviceContext(dummy); } void __fastcall editor::
Paint
() { char msg[12]; sprintf(msg, "Message: %d",… TCustomControl { public: __fastcall editor(TComponent* Owner); void __fastcall
Paint
(); void __fastcall resizeWindow(int width, int height); void __fastcall …
Paint Multiple Items to screen
Programming
Software Development
12 Years Ago
by ObSys
Ok so basically I want to know how I can
paint
multiple items to the screen without using all of my … possible to arrange the items as a bitmap and then
paint
that bitmap to the screen but im not entirely sure…
Paint Method on GUI application
Programming
Software Development
11 Years Ago
by murali2489
Hi All, I have a doubt in
paint
method of the Component Class. I know how to use … code here, please edit it to make the program use
paint
method to render any GUI component. Be it any Component…
Re: Paint Method on GUI application
Programming
Software Development
11 Years Ago
by JamesCherrill
You are just using standard Swing components, so there is no need for you to write (or even think about) a
paint
method. Swing will
paint
all those components for you. Why exactly do you want to write a custom ppaint method???
Re: Paint interface
Programming
Software Development
17 Years Ago
by jwenting
…;http://java.sun.com/javase/6/docs/api/java/awt/
Paint
.html"]here[/URL].[/QUOTE] which are of course 2… casesensitive :) I'm quite aware of the existence of a
Paint
interface.
Re: Paint for Mac?
Hardware and Software
macOS
16 Years Ago
by jaxjason
Here is an article with many links for different experience levels... [URL="http://blog.somekool.net/articles/2006/10/03/free-
paint
-program-for-mac-os-x"]http://blog.somekool.net/articles/2006/10/03/free-
paint
-program-for-mac-os-x[/URL] Hope this helps some, Jason
Re: Paint for Mac?
Hardware and Software
macOS
16 Years Ago
by ilaureano
[QUOTE=korento;416859]Is there a microsoft
paint
like application for mac? Either built in, or for a …; it's name is paintbrush and it behaves exactly as
Paint
, has the same capabilities, limitations, etc., (well, not exactly, it…
Re: Paint not painting properly
Programming
Software Development
13 Years Ago
by stinkypete
… with no text, the canvas ClipRect contains zeros in the
Paint
method. Sometimes a tab that displays the text correctly will…
Re: Paint method painting over Jlabel
Programming
Software Development
13 Years Ago
by mKorbel
1) use [URL="http://docs.oracle.com/javase/tutorial/uiswing/components/icon.html"]Icon[/URL] in the [URL="http://docs.oracle.com/javase/tutorial/uiswing/components/label.html"]JLabel[/URL] for Image/IconImage instead of
paint
() 2) for Swing use paintComponent rather thatn
paint
();
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC