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, ≈34🔥, 1💬
Popular Posts:
How to merge two JAR files with "jar" commands? I am tired of specifying multiple JAR files in the c...
JDK 11 jdk.charsets.jmod is the JMOD file for JDK 11 Charsets module. JDK 11 Charsets module compile...
What Is log4j-1.2.15.jar? I got the JAR file from apache-log4j-1.2.15.zip. log4j-1.2.15.jar is the v...
Apache Avalon began in 1999 as the Java Apache Server Framework and in late 2002 separated from the ...
JDK 11 jdk.aot.jmod is the JMOD file for JDK 11 Ahead-of-Time (AOT) Compiler module. JDK 11 AOT Comp...