com.centerkey.utils.BareBonesBrowserLaunch Java Examples

The following examples show how to use com.centerkey.utils.BareBonesBrowserLaunch. 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
Source File: UpdateCheckFrame.java    From nullpomino with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
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 File: MainFrame.java    From mpcmaid with GNU Lesser General Public License v2.1 4 votes vote down vote up
public void help() {
	BareBonesBrowserLaunch.openURL(HELP_URL);
}