When Eclipse is run with GCJ the file search does not work properly. Solved by adding a file ~/.eclipse/eclipserc with the following content:
export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-1.5.0.11
For details see the bug in the Eclipse bug database.
When Eclipse is run with GCJ the file search does not work properly. Solved by adding a file ~/.eclipse/eclipserc with the following content:
export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-1.5.0.11
For details see the bug in the Eclipse bug database.
Scrolling a JScrollPane such that a component becomes visible should work like this:
Rectangle bounds = component.getBounds();
scrollPane.getViewport().scrollRectToVisible(bounds);
Unfortunately, the code above does not work. The following code does the trick:
Rectangle bounds = component.getBounds();
Point p = scrollPane.getViewport().getViewPosition();
bounds.translate(-p.x, -p.y);
scrollPane.getViewport().scrollRectToVisible(bounds);
I submitted a bug in Sun’s bug database: see bug 7077308 in the bug database.