Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (322)
Collections:
Other Resources:
JBrowser Source Code Files
JBrowser Source Code Files are provided in the
source package file.
You can download JBrowser source package as described in the previous tutorial and go to the "src" sub-folder to view Source Code files.
You can also browse JBrowser Source Code files below:
✍: FYIcenter
⏎ org/mozilla/browser/impl/CocoaUtils.java
package org.mozilla.browser.impl;
import org.mozilla.browser.RunnableEx;
/**
* Utility class for executing code
* on the AppKit thread
*/
public class CocoaUtils {
public static Thread appkitThread;
/**
* Executes the given task on the AppKit thread.
*
* During execution of this method, the method
* callbackOnAppKitThread() will be called on
* the AppKit thread.
*/
public static native void syncExecOnAppKitThread(RunnableEx task)
throws Exception;
/**
* Executes the given task on the AppKit thread.
*
* During execution of this method, the method
* callbackOnAppKitThread() will be called on
* the AppKit thread.
*/
public static native void asyncExecOnAppKitThread(Runnable task);
/**
* called back on the AppKit thread with the runnable
* passed to syncExecOnAppKitThread()
* @param task
*/
@SuppressWarnings("unused") //called from JNI //$NON-NLS-1$
private static void callbackOnAppKitThread(RunnableEx task)
throws Exception
{
Thread ct = Thread.currentThread();
assert "AWT-AppKit".equals(ct.getName()); //$NON-NLS-1$
if (appkitThread==null) appkitThread = ct;
task.run();
}
/**
* called back on the AppKit thread with the runnable
* passed to asyncExecOnAppKitThread()
* @param task
*/
@SuppressWarnings("unused") //called from JNI //$NON-NLS-1$
private static void callbackOnAppKitThread(Runnable task)
{
Thread ct = Thread.currentThread();
assert "AWT-AppKit".equals(ct.getName()); //$NON-NLS-1$
if (appkitThread==null) appkitThread = ct;
task.run();
}
/**
* Spins AppKit event loop until the method
* stopModal() is called;
*/
public static native void runModal();
/**
* Stops spinning of the AppKit event loop
* started in runModal()
*/
public static native void stopModal();
}
⏎ org/mozilla/browser/impl/CocoaUtils.java
Or download all of them as a single archive file:
File name: jbrowser-1.9-fyi.zip File size: 625318 bytes Release date: 2022-11-10 Download
⇐ Download and Install JBrowser Source Package
2017-07-17, ≈25🔥, 1💬
Popular Posts:
Where to find answers to frequently asked questions on Downloading and Installing ojdbc.jar - JDBC D...
How to run "jarsigner" command from JDK tools.jar file? "jarsigner" command allows you to digitally ...
Java-WebSocket Source Code Files are provided in the source package file, java-websocket-1.5.4-src .z...
Apache Log4j API provides the interface that applications should code to and provides the adapter co...
What Is ojdbc5.jar for Oracle 11g R1? ojdbc5.jar for Oracle 11g R1 is the JAR files of ojdbc.jar, JD...