Skip to main content

Can anyone get WebBrowser to display scrollbars in linux?

1 reply [Last post]
kmgramm
Offline
Joined: 2005-01-11

I'm using the 0.9.4 cross-platform download and I have SeaMonkey 1.1.9 loaded with a soft link called mozilla. My program starts correctly and displays the web page, I just don't get any scrollbars. For what it is worth, the same program works correctly using IE on a Windows box.

The test program I'm using is:

import java.awt.*;
import java.net.URL;
import javax.swing.*;
import org.jdesktop.jdic.browser.WebBrowser;

public class Test {

public static void main(String[] args) {
try {
WebBrowser browser = new WebBrowser();
browser.setURL(new URL("http://java.net"));

JFrame frame = new JFrame("Browser Test");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.getContentPane().add(browser);
frame.pack();
frame.setSize(500,500);
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
}

Thanks,
Ken

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
taylans
Offline
Joined: 2008-08-18

No.

I also tried this. It seems working fine with seamonkey but the scrollbars are away and there is no solution. You should do it with old mozilla. (not ff)