The examples having bolded links below contain additional description of the example.
- MarvinSketch
- MarvinSketch Simple Bean:
Creates a MarvinSketch bean and shows getting and setting molecules. - MarvinSketch Images:
Creates an image from the contents of the MarvinSketch canvas. - Structure Display Parameters:
Example of R-group visibility parameters. - Structure Templates:
Customizing structure templates used in MarvinSketch. Text Box:
Creating a text box containing formatted text.
- MarvinView
- MarvinView Simple Bean:
Creates a single-cell MarvinView bean component. - MarvinView In JTable:
Loads multiple molecules from a file and displays them in a JTable using MarvinView as the renderer of Molecule cells. - MarvinView Table View:
Displays a molecule file in MarvinView using a scrollable molecule table.
Molecules are loaded dynamically and cached automatically, hence arbitrary size files are supported. - Lower level ways for creating molecule tables.
In these examples, all molecules are loaded in advance, hence the table size is limited by the available memory.- Table View with Parameters:
Loads multiple molecules from a file into memory, then displays them using MarvinView's scrollable multi-cell molecule matrix mode. - CustomMenuExample: Customize the menu of MarvinView.
- MViewPopupExample: A viewer example with a customized popup menu.
- MViewExampleWithCheckbox: Demonstrates the handling of action and item events.
- MViewSaveProperties: Demonstrates how to save Marvin properties.
- Swing Components
- JFileChooser accessory component:
Marvin as a custom accessory component of a file chooser to provide preview to molecule files. - DialogLauncher.java.txt:
Launches a sketcher or a viewer from a dialog window.
- Events
- SimpleConverter.java.txt: Converts the specified molecule file into the required file format.
- JSP Image Generation: A JSP example to create an image from a molecule structure and display it in the browser.
- Excelsheet Generation: A JSP example to create an Excel Sheet with Marvin generated structure images and structure data.
- Calculator Plugins