Re: JFrame with an Object which inherits JComponent, first object doesn't work, others do
- From: "Oliver Wong" <owong@xxxxxxxxxxxxxx>
- Date: Tue, 11 Apr 2006 20:27:52 GMT
<gooderthanyou@xxxxxxxxx> wrote in message news:1144781418.706766.265760@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Second, all Java 2 SE game code I have seen paints everything
by itself on some top-level window, instead of relying on components and
the repainting mechanism.
I don't really understand what you mean.. you mean each compoenent
paints itself with own graphics object? I am painting with the
JFrame's graphic's object, but they are painting themselves...
No, he means get rid of the Components (with a capital C) entirely. You can have things which, conceptually, are components (with a lowercase C) to *you*, but don't bother with the java.awt.Component class. Instead, just have one big flat drawing surface, and draw whatever you need to draw on that surface.
- Oliver
.
- References:
- JFrame with an Object which inherits JComponent, first object doesn't work, others do
- From: gooderthanyou
- Re: JFrame with an Object which inherits JComponent, first object doesn't work, others do
- From: Thomas Weidenfeller
- Re: JFrame with an Object which inherits JComponent, first object doesn't work, others do
- From: gooderthanyou
- Re: JFrame with an Object which inherits JComponent, first object doesn't work, others do
- From: Thomas Weidenfeller
- Re: JFrame with an Object which inherits JComponent, first object doesn't work, others do
- From: gooderthanyou
- JFrame with an Object which inherits JComponent, first object doesn't work, others do
- Prev by Date: Re: JFrame with an Object which inherits JComponent, first object doesn't work, others do
- Next by Date: Re: Java ORACLE developer some old version...???
- Previous by thread: Re: JFrame with an Object which inherits JComponent, first object doesn't work, others do
- Next by thread: Java ORACLE developer some old version...???
- Index(es):
Relevant Pages
|