VE 1.1M2 JScrollPane bug [message #608117] |
Thu, 30 June 2005 09:59 |
Eclipse User |
|
|
|
Here's a long-standing (since 1.0) bug of VE.
Test case:
- Create a Visual Class extending from JFrame (or JPanel)
- Add a JScrollPane
- Customize the JScrollPane's JScrollBar (i.e. by modifying the block
increment).
- Save the class
The generated java code will have something like:
/**
* This method initializes scrollBar
*
* @return javax.swing.JScrollPane.ScrollBar
*/
private JScrollPane.ScrollBar getScrollBar() {
if (scrollBar == null) {
try {
scrollBar = new JScrollPane.ScrollBar();
scrollBar.setBlockIncrement(20); // Generated
}
catch (java.lang.Throwable e) {
// TODO: Something
}
}
return scrollBar;
}
which leads (no surprise) to a java compilation error.
Cheers!
Mik of ClassX
|
|
|
Powered by
FUDForum. Page generated in 0.03830 seconds