Main Window allows itself to be “rubbed away” during processing:

DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Main Window allows itself to be “rubbed away” during processing:

  1. #1
    Join Date
    Jan 2005

    Main Window allows itself to be “rubbed away” during processing:

    i developed a Jframe which is having some functionality (i.e. io concept)during that i displayed a JDialog box to show the current status.
    here my problem are

    1.JDialog is not showing its components. it is showing only frame with title

    2.if the main window is covered by another window (when another window is dragged across the front of it for example), its contents vanish to greyness.

    please tell me how can i rectify these.



  2. #2
    Join Date
    Feb 2004
    the first problem is caused by improper setup of the JDialog, or doing something that is making your program busy that it never gets to update the JDialog

    the second problem is that your program is waiting for a response from the JDialog, or that it is doing some intensicve operation with the thread that should be updating the GUI, and hence has no time to repaint the display

    separate the program into threads, and also consider if you really need to make the jdialog modal
    The 6th edict:
    "A thing of reference thing can hold either a null thing or a thing to any thing whose thing is assignment compatible with the thing of the thing" - ArchAngel, et al.
    JAR tutorial GridBag tutorial Inherited Shapes Inheritance? String.split(); FTP?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center