Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8875087
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T18:53:19+00:00 2026-06-14T18:53:19+00:00

We have a Java application showing an embedded web page. It is done with

  • 0

We have a Java application showing an embedded web page.
It is done with NativeSwing jwebbrowser, but the embedded browser turns out to be IE7, so we are having issues with styles.
That machine has IE8 installed, so I hoped it to be the default browser.

Is this a limitation of the library? Is there a way to select the browser version?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T18:53:21+00:00Added an answer on June 14, 2026 at 6:53 pm

    After some hours work, I managed to run the jwebbrowser with the latest version of Internet Explorer installed on the system ( IE9 for me ).

    The issue is related with the SWT version and described in the The SWT FAQ.
    For me including the swt.jar from this link and DJNativeSwing.jar and DJNativeSwing-SWT.jar from this link and running the following code

    /*
     * Christopher Deckers (chrriis@nextencia.net)
     * http://www.nextencia.net
     *
     * See the file "readme.txt" for information on usage and redistribution of
     * this file, and for a DISCLAIMER OF ALL WARRANTIES.
     */
     package chrriis.dj.nativeswing.swtimpl.demo.examples.webbrowser;
    
     import java.awt.BorderLayout;
     import java.awt.FlowLayout;
     import java.awt.event.ItemEvent;
     import java.awt.event.ItemListener;
    
     import javax.swing.BorderFactory;
     import javax.swing.JCheckBox;
     import javax.swing.JComponent;
     import javax.swing.JFrame;
     import javax.swing.JPanel;
     import javax.swing.SwingUtilities;
    
     import chrriis.common.UIUtils;
     import chrriis.dj.nativeswing.swtimpl.NativeInterface;
     import chrriis.dj.nativeswing.swtimpl.components.JWebBrowser;
    
     /**
      * @author Christopher Deckers
      */
     public class SimpleWebBrowserExample {
    
          public static JComponent createContent() {
              JPanel contentPane = new JPanel(new BorderLayout());
              JPanel webBrowserPanel = new JPanel(new BorderLayout());
              webBrowserPanel.setBorder(BorderFactory.createTitledBorder("Native Web Browser component"));
              final JWebBrowser webBrowser = new JWebBrowser();
              webBrowser.navigate("http://www.browserproperties.com");
              webBrowserPanel.add(webBrowser, BorderLayout.CENTER);
              contentPane.add(webBrowserPanel, BorderLayout.CENTER);
              // Create an additional bar allowing to show/hide the menu bar of the web browser.
              JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.CENTER, 4, 4));
              JCheckBox menuBarCheckBox = new JCheckBox("Menu Bar", webBrowser.isMenuBarVisible());
              menuBarCheckBox.addItemListener(new ItemListener() {
                public void itemStateChanged(ItemEvent e) {
                  webBrowser.setMenuBarVisible(e.getStateChange() == ItemEvent.SELECTED);
                }
              });
              buttonPanel.add(menuBarCheckBox);
              contentPane.add(buttonPanel, BorderLayout.SOUTH);
              return contentPane;
          }
    
          /* Standard main method to try that test as a standalone application. */
          public static void main(String[] args) {
              NativeInterface.open();
              UIUtils.setPreferredLookAndFeel();
              SwingUtilities.invokeLater(new Runnable() {
                  public void run() {
                       JFrame frame = new JFrame("DJ Native Swing Test");
                       frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                       frame.getContentPane().add(createContent(), BorderLayout.CENTER);
                       frame.setSize(800, 600);
                       frame.setLocationByPlatform(true);
                       frame.setVisible(true);
                  }
              });
              NativeInterface.runEventPump();
          }
     }     
    

    ends up showing:

    You are using
    Internet Explorer
    Basic Info
    Browser Name: Internet Explorer
    Browser Version: 9.0
    Your Platform: Windows
    …
    (You may need to refresh once or twice to avoid caching)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does someone know/have experience in showing Java web application generated UI in Sharepoint? We
I have a Java web-application. In some places there is showing of dates. I
I have a thread in a Java web application that causes a java.lang.OutOfMemoryError: Java
i have one simple problem with downloading eclipse java ide for web application.I have
I have a java web application. I have an entity class which (after transformation
I have one application for showing the map but it is not working does
I have declared a simple ProgressDialog in my android application but it isn't showing
I have a project opened in eclipse, its a java web application. In eclipse
I have Java application which sends pointer to function (callback) to some native dll
I have a Java application that run as a background service, i.e. no GUI.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.