Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JOptionPane does not repaint properly on close

 
vladislav peichev
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an applet which allows the user to draw a polygon and display its area. If the polygon becomes self-intersecting after selecting the last point I display a JOptionPane message dialog and ignore the last point entered. However the polygon is not repainted always properly after closing the JOptionPane. Is there a way to always ensure proper repainting?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic