Skip to main content



      Home
Home » Archived » Visual Editor (VE) » VE 1.1M2 JScrollPane bug
VE 1.1M2 JScrollPane bug [message #608117] Thu, 30 June 2005 09:59
Eclipse UserFriend
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
Previous Topic:currently methods need receiver
Next Topic:No display of layout
Goto Forum:
  


Current Time: Wed Jun 25 02:01:47 EDT 2025

Powered by FUDForum. Page generated in 0.03830 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top