|
>If I overwrite the paintComponent() method of the JPanel, will Java
know to paint the JPanel after the >JDialog has been disposed, or if focus
has returned to the window?
I'm having problems redrawing areas in my JPanel where either a JMenu or a
JPopupMenu is overlapping. It will redraw everything correctly, except the
overlapped area? I tried to figure out what was wrong, but cannot determine
where the problem is.
Here is part of my code:
drawingPanel = new
JPanel(){
public void paintComponent(Graphics g){ super.paintComponent(g); drawMap(); } }; private void
drawMap(){
Graphics2D g2 = (Graphics2D) drawingPanel.getGraphics(); g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON); // custom paint code }
Thanks in advance,
Walter Shirey
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help". |
- [JAVA2D] repainting JPanel Walter H Shirey
- Re: [JAVA2D] repainting JPanel Dmitri Trembovetski
- Re: [JAVA2D] repainting JPanel Nidel, Michael
- Re: [JAVA2D] repainting JPanel Walter H Shirey
- Re: [JAVA2D] repainting JPanel Dave Kavanagh
- Re: [JAVA2D] repainting JPanel Walter H Shirey
- Re: [JAVA2D] repainting JPanel David Eisner
- Re: [JAVA2D] repainting JPanel Andrei Kouznetsov
- Re: [JAVA2D] repainting JPanel Walter H Shirey
- Re: [JAVA2D] repainting JPanel Walter H Shirey
- Re: [JAVA2D] repainting JPanel Andrei Kouznetsov
- Re: [JAVA2D] repainting JPanel Dmitri Trembovetski
