Java Code Examples for com.centerkey.utils.BareBonesBrowserLaunch

The following examples show how to use com.centerkey.utils.BareBonesBrowserLaunch. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
public void actionPerformed(ActionEvent e) {
	// Update Now check
	if(e.getActionCommand() == "CheckNow") {
		if(!UpdateChecker.isRunning()) {
			txtfldLatestVersion.setForeground(Color.black);
			UpdateChecker.addListener(this);
			UpdateChecker.startCheckForUpdates(txtfldXMLURL.getText());
			btnCheckNow.setEnabled(false);
		}
	}
	// Downloaded in the browser
	else if(e.getActionCommand() == "OpenDownloadURL") {
		BareBonesBrowserLaunch.openURL(txtfldDownloadURL.getText());
	}
	// Installer Download
	else if(e.getActionCommand() == "OpenInstallerURL") {
		BareBonesBrowserLaunch.openURL(txtfldWindowsInstallerURL.getText());
	}
	// Save
	else if(e.getActionCommand() == "Save") {
		NullpoMinoSwing.propGlobal.setProperty("updatechecker.enable", chkboxEnable.isSelected());
		NullpoMinoSwing.propGlobal.setProperty("updatechecker.url", txtfldXMLURL.getText());
		NullpoMinoSwing.propGlobal.setProperty("updatechecker.startupMax", NullpoMinoSwing.getIntTextField(20, txtfldStartupMax));
		NullpoMinoSwing.saveConfig();
	}
	// Close
	else if(e.getActionCommand() == "Close") {
		this.setVisible(false);
	}
}
 
Example 2
Source Project: mpcmaid   Source File: MainFrame.java    License: GNU Lesser General Public License v2.1 4 votes vote down vote up
public void help() {
	BareBonesBrowserLaunch.openURL(HELP_URL);
}