Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
W

woo_37830

@woo_37830
About
Posts
3
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Slow performance of javax.swing.JOptionPane.showOptionDialog
    W woo_37830

    Just measured 20 seconds to display the OK button after the frame of the option panel had appeared. CPU this time was at 60% after starting the show of the pane until the OK button appeared.

    Java performance tutorial question code-review

  • Slow performance of javax.swing.JOptionPane.showOptionDialog
    W woo_37830

    In addition, all mouse events seem to be extremely slow with long delays in dragging, clicking, etc. It isn't the time for my code to process the event, it appears to be a delay before my code gets the event.

    Java performance tutorial question code-review

  • Slow performance of javax.swing.JOptionPane.showOptionDialog
    W woo_37830

    I am having a very long delay with both the presentation of hte JOptionPane.showInputDialogue and when I click on the OK button, I get a 3-6 second delay. Here is the code: viewer.setStatus("Waiting on input"); String reason = JOptionPane.showInputDialog("Redaction Reason", "User"); if( reason != null && reason.length() > 0 ) { viewer.setStatus("Analyzing"); ..... do some analysis } Now, the status shows in the parent "viewer" and then a long wait ( sometimes ) until the option pane appears. Then a long wait while the components are painted, wait for the input field, wait for the OK button, and the Cancel button. Enter input, then click OK. VERY LONG WAIT ( 3-6 seconds ) before panel hides and next statement is executed. No indication of problem. CPU useage very low. Nothing else running to eat up cpu ( highest < 10% ) This seems to have appeared recently. Don't know if it was the upgrade in Java for Snow Leopard, or something I've done in the code, but I don't see why anything I've done that isn't eating up time would affect the time to appear or time to dissappear significantly. Running on Mac OS X Snow Leopard 10.6.3

    Java performance tutorial question code-review
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups