congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
BasicService
Code IndexAdd Tabnine to your IDE (free)

How to use
BasicService
in
javax.jnlp

Best Java code snippets using javax.jnlp.BasicService (Showing top 10 results out of 315)

origin: org.jbundle.util/org.jbundle.util.muffinmanager

/**
 * Get the Java WebStart codebase.
 * @return The codebase.
 */
public URL getCodeBase()
{
  if (m_bs != null)
    return m_bs.getCodeBase();
  return null;
}
/**
origin: org.jbundle.util/org.jbundle.util.muffinmanager

/**
 * Display this URL in a web browser.
 * @param url The URL to display.
 * @return True if successfully displayed.
 */
public boolean showTheDocument(URL url)
{
  if (m_bs != null)
    return m_bs.showDocument(url);
  return false;
}
private ClipboardService cs = null;
origin: stackoverflow.com

 final BasicService bs = (BasicService) ServiceManager.lookup(
  "javax.jnlp.BasicService");
final URL codeBase = bs.getCodeBase();
origin: stackoverflow.com

 import javax.jnlp.*;

BasicService bs = (BasicService)ServiceManager.lookup("javax.jnlp.BasicService");
URL codebase = bs.getCodeBase();
origin: org.jdesktop.bsaf/bsaf

private URL fileNameToURL(String name) throws IOException {
  if (name == null) {
    throw new IOException("name is not set");
  }
  try {
    return new URL(bs.getCodeBase(), name);
  } catch (MalformedURLException e) {
    throw new IOException("invalid filename \"" + name + "\"", e);
  }
}
origin: net.java.dev.appframework/appframework

private URL fileNameToURL(String name) throws IOException {
  try {
  return new URL(bs.getCodeBase(), name);
  }
  catch (MalformedURLException e) {
  throw new LSException("invalid filename \"" + name + "\"", e);
  }
}
origin: org.jbundle.util/org.jbundle.util.muffinmanager

/**
 * Creates new MuffinManager.
 * @param applet The parent object (ignored).
 */
public void init(Object applet)
{
  try {
    m_ps = (PersistenceService)ServiceManager.lookup("javax.jnlp.PersistenceService");
    m_bs = (BasicService)ServiceManager.lookup("javax.jnlp.BasicService");
    m_strCodeBase = m_bs.getCodeBase().toString();
  } catch (UnavailableServiceException e) {
    m_ps = null;
    m_bs = null;
  }
}
/**
origin: org.slick2d/slick2d-core

BasicService bs = (BasicService) ServiceManager
    .lookup("javax.jnlp.BasicService");
URL baseURL = bs.getCodeBase();
URL configURL = new URL(baseURL, fileName);
FileContents fc = ps.get(configURL);
origin: org.slick2d/slick2d-core

bs = (BasicService) ServiceManager
    .lookup("javax.jnlp.BasicService");
URL baseURL = bs.getCodeBase();
origin: org.jvnet.hudson/netx

  url = new File(location).toURL(); // Why use file.getCanonicalFile?
else 
  url = new URL(ServiceUtil.getBasicService().getCodeBase(), location);
javax.jnlpBasicService

Most used methods

  • getCodeBase
  • showDocument

Popular in Java

  • Reading from database using SQL prepared statement
  • getResourceAsStream (ClassLoader)
  • putExtra (Intent)
  • getApplicationContext (Context)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Option (scala)
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now