Hi:

I'm just getting started with Java 2D and am having problems getting a very
simple example app to work.

All it does is try to open an image and display it in a window. The window
has also been assigned a menu bar. The problem I'm having is with the paint
(). Depending on the order of the calls in the paint() and the repaint(),
the BufferedImage and the Menu create various artifacts. Either the menu
will be painted over, and only show up Item by Item, when one holds down
the mouse button and moves the mouse around, or the (blue) background of
the JPanel will show up when the SubMenu's are un-drawn.

I'm considering that I might need to write new paint() handlers for the
Frame class (so it can re-draw the Buffered-Image) or some such, but I
thought I would ask to see if there was a far simpler way that I was
missing.

I've attatched some code just in case my dilema wasn't clear from my
description

Thanks
Michael(See attached file: App2.java)

--

NOTICE:  The information contained in this electronic mail transmission is
intended by Convergys Corporation for the use of the named individual or
entity to which it is directed and may contain information that is
privileged or otherwise confidential.  If you have received this electronic
mail transmission in error, please delete it from your system without
copying or forwarding it, and notify the sender of the error by reply email
or by telephone (collect), so that the sender's address records can be
corrected.

App2.java

Reply via email to