Map<String, String> postDataMap = new HashMap<String, String>();
postDataMap.put(usernameID, username);
postDataMap.put(passwordID, password);
parameters.setPostData(postDataMap);
webBrowser.navigate(url, parameters);
webBrowserPanel.add(webBrowser, BorderLayout.CENTER);
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());