J/Link User Guide
J/Link User Guide
Calling Java from the Wolfram Language
J/Link Basics
Advanced Topics in J/Link
Creating Windows and Other User Interface Elements
Preamble
Interactive and Non-Interactive Interfaces
Modal versus Modeless Operation
Handling Events with Wolfram Language Code: The "MathListener" Classes
Bringing Java Windows to the Foreground
Modal Windows
MathFrame and MathJFrame
Modeless Windows: Sharing the Kernel with Java
Sharing the Front End
Summary of Modal and Modeless Operation
"Manual" Interfaces: The ServiceJava Function
Using a GUI Builder
The Java Console Window
Using JavaBeans
Hosting Applets
Periodical Tasks
Ragged Arrays
Implementing a Java Interface with Wolfram Language Code
Writing Your Own Installable Java Classes
Preamble
Installable Functions—The Old Way
Installable Functions in Java
Setting Up Definitions in the Wolfram Language When Your Class Is Loaded
Manually Returning a Result to the Wolfram Language
Requesting Evaluations by the Wolfram Language
Throwing Exceptions
Making a Method Interruptible
Writing Your Own Event Handler Code
Debugging Your Java Classes
Example Programs
Introduction
A Beep Function
Formatting Dates
A Progress Bar
A Simple Modal Input Dialog
A File Chooser Dialog Box
Sharing the Front End: Palette-Type Buttons
Real-Time Algebra: A Mini-Application
GraphicsDlg: Graphics and Typeset Output in a Window
BouncingBalls: Drawing in a Window
Spirograph
A Piano Keyboard
Writing Java Programs That Use the Wolfram Language
Introduction
What Is WSTP?
Sample Program
Handling MathLinkExceptions
Aborting and Interrupting Computations
Using Marks
Using Loopback Links
Threads, Blocking, and Yielding
Sending Object References to the Wolfram Language
Writing Applets
Advertisement