Marvin Beans Examples

The examples having bolded links below contain additional description of the example.

  1. MarvinSketch

    1. MarvinSketch Simple Bean:
      Creates a MarvinSketch bean and shows getting and setting molecules.

    2. MarvinSketch Images:
      Creates an image from the contents of the MarvinSketch canvas.

    3. Structure Display Parameters:
      Example of R-group visibility parameters.

    4. Structure Templates:
      Customizing structure templates used in MarvinSketch.

    5. Text Box:
      Creating a text box containing formatted text.

  2. MarvinView

    1. MarvinView Simple Bean:
      Creates a single-cell MarvinView bean component.

    2. MarvinView In JTable:
      Loads multiple molecules from a file and displays them in a JTable using MarvinView as the renderer of Molecule cells.

    3. 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.

    4. 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.

      1. Table View with Parameters:
        Loads multiple molecules from a file into memory, then displays them using MarvinView's scrollable multi-cell molecule matrix mode.

      2. CustomMenuExample: Customize the menu of MarvinView.

      3. MViewPopupExample: A viewer example with a customized popup menu.

      4. MViewExampleWithCheckbox: Demonstrates the handling of action and item events.

      5. MViewSaveProperties: Demonstrates how to save Marvin properties.

  3. Swing Components

  4. Events

  5. SimpleConverter.java.txt: Converts the specified molecule file into the required file format.

  6. JSP Image Generation: A JSP example to create an image from a molecule structure and display it in the browser.

  7. Excelsheet Generation: A JSP example to create an Excel Sheet with Marvin generated structure images and structure data.

  8. JNLP examples: Installation guide to jnlp examples

  9. Calculator Plugins