Introducing Cocktail

Cocktail is a Code Generation Tool for Java that represents the program structures in Trees. A programmer can create a program in java by adding new components as leaves in the tree. Cocktail generates Java Source Code for the tree developed which can be then compiled and run. The Tree structure is stored in a xml format. Cocktail uses the tree structure to represent the Models (data) and Views (UI). This simplifies the structure of a program making it easier to code and maintain. 

Cocktail's Visual Representation of a Java Program is very intuitive. For a Beginner, Cocktail provides a jumpstart to Java and Swing, the GUI toolkit for java. An Expert Programmer can use Cocktail as a RAD tool for developing GUI screens based on Layout's Concept. 

Cocktail enforces Model-View-Controller architecture which is one of the core design patterns. MVC is pervasive in SWING Architecture. Adapting to MVC architecture without much effort, provides vast advantage from developing, code reuse and better maintainability. 

 

Installation Notes:

This release has been tested on the following systems: 

Windows95/98/NT - Java2 JDK 1.2 

Installation : 

  1. Unzip coctail.zip to \cocktail 
  2. Set classpath=%classpath%;\cocktail 

System Requirements: 

All classes are written exclusively in the Java(tm) Programming Language and may be used with any JRE 1.2 conformant system,including Java2 conformant systems. 

CockTail Overview

 

On the image below, click on the component to know more about it.

 

Model Factory Code Preview Event View Tree View Exit Project Close Generate Save Open New View Menu File Menu Controller Components Dataaware Components Data Components Layout Container View Components UI Data Model Collections Primitives Model Components Bean Repository

File Menu
New lets you create a new CockTail object
Open an existing project
Saves the current project
Generates Java source code for the current project
Close the current project
Project lets you choose name and the path for the new project
Exit CockTail
Top

 
View Menu
Tree View shows the Tree structure of the current project
Event View list out the events for the objects in the current project
Code Preview lets you see the CockTail generated Java code
Model Factory allows you to create Model Components
Top
Bean Repository
Bean Repository is the collection of SWING Components, Java Collections, Java Basic Datatype etc. Bean Repository organizes these components in a Model-View-Controller Hierarchy.
Top