FAQ Database Discussion Community


Temporarily disable or prevent repainting JViewPort on scrolling with a mouseDrag

java,swing,mouselistener,java-5,jviewport
I have written a MouseListener as defined below so that I can move a JButton around to reorder the components that are within the JPanel. The JPanel is within a JScrollPane so that when multiple components are added they can be scrolled. The problem I have is that when dragging...

Java 5 Multi threading, catch thread exceptions

java,multithreading,exception,concurrency,java-5
I've got a class that generates threads (file i/o). I need to catch exceptions in the thread - I don't want to do anything fancy, I want to kill the main thread, rather, stop processing altogether so it can start over. If I catch the exceptions in the thread, that's...

JRuby Java Version Compatibility

java,version,jruby,java-7,java-5
we want to upgrade our JRuby application from 1.6 (with Java5) to 1.7 (with Java7). I haven't found anywhere a support matrix or compatibility list. Does JRuby support any Java version out of the box? bye, selcuk....