Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

The JDialog got drawing issue when open and can't close with [x] button

user4044661Jun 20 2017 — edited Jun 23 2017

I've got weird, random and strange issue with JDialog with JDK1.6.43.

The JDialog just a normal java swing dialog that contains JTextField, JTextArea, JButton...

The JDialog instance is newly created when is open.

Out of 200 - 300 times of opening the JDialog, the JDialog is shown with partially painted. I've tried to closed the JDialog by mouse click on [x], the JDialog is not closed.

Sometimes JDialog gets partially repainted when moving the mouse within the JDialog.

pcr6131_crop.jpg

What I suspect with JDialog issue is

  • The JDialog is not fully repainted
    • I've looked at the RepaintManager to find why the JDialog is not fully paitnted, I don't find any issue with it.
  • The mouse event (left click) is not processed by the JDialog
    • I've looked at how JComponent mouse event, it loops through all its sub component to find out the sub component that contains mouse click location and delegate the mouse event to that sub component.

Has anyone experienced or encountered the similar issue?

Thanks & regards,

Huy

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 21 2017
Added on Jun 20 2017
1 comment
493 views