Error icon do not re-locate in JScrollPane (dev-hh-2)

  1 post   Feedicon  
Replies: 0 - Last Post: June 29, 2010 16:09
by: p_suwanpech
showing 1 - 1 of 1
 
Posted: June 29, 2010 16:09 by p_suwanpech
I use dev-hh-2 in my project and i found some bug (I don' remember why i choose dev-hh-2)
I found a bug as describe below.

If validate component(like JTextfiled) is a child of JScrollPane and when JScrollPane moved an error icon do not re-locate/repaint
I found that a ComponentListener in this case not adequate.

I was fix by add following line in SimpleDefaultDecorator at line 521
decoratedComponent.addAncestorListener(new AncestorListener() {

public void ancestorAdded(AncestorEvent event) {

}

public void ancestorRemoved(AncestorEvent event) {

}

public void ancestorMoved(AncestorEvent event) {
tryDecorationIcon();
}
});
Replies: 0 - Last Post: June 29, 2010 16:09
by: p_suwanpech
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120127.ac94057)
 
 
Close
loading
Please Confirm
Close