Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #1202
| From | "Daniel Pitts" <daniel.pitts@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Re: how to execute the co |
| Message-ID | <1174078035.627269.51440@n76g2000hsh.googlegroups.com> (permalink) |
| Newsgroups | comp.lang.java.gui |
| References | <1174074266.422409.159550@o5g2000hsb.googlegroups.com> |
| Date | 2011-04-27 15:31 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui On Mar 16, 12:44 pm, "lrantisi" <lrant...@gmail.com> wrote: > the paintComponenet method is the method we use to put the code that > does the drawing, but how do I execute this code. > How to let the code of the paintComponenet method be executed. ???? > Thanks When you have created a visible window (JFrame, or JApplet), you can create a class which extends JComponent and overrides paintComponent. Once you have done that, you can create an object of your new class, and "add" it to the content pane of the window you created... For more details, check out Suns excellent Swing Tutorial trail: <http://java.sun.com/docs/books/tutorial/uiswing/> Hope this helps, Daniel. --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
Back to comp.lang.java.gui | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
how to execute the code o "lrantisi" <lrantisi@THRWHITE.remove-dii-this> - 2011-04-27 15:31 +0000
Re: how to execute the co "Daniel Pitts" <daniel.pitts@THRWHITE.remove-dii-this> - 2011-04-27 15:31 +0000
Re: how to execute the co "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:31 +0000
Re: how to execute the co "Daniel Pitts" <daniel.pitts@THRWHITE.remove-dii-this> - 2011-04-27 15:31 +0000
Re: how to execute the co "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:31 +0000
csiph-web