Solved

how to write a main program and keep attaching helper programs as plugins

Posted on 1997-11-12
2
223 Views
Last Modified: 2013-11-18
I would like to write a presentation toolkit.
I want it to be a main program and several sub programs..
A version of the applet will consist of the main program
and one or more of these helper applications.
The main program will set a uniform format for the presentation usually a slide show and will take in the names of the helper (plugins) programs.
The helper applications will be text zoomers..image rotators..pixel based messaging and imaging.
Can anyone tell me how to go about writing a main program..
to which I can keep adding new effects (plugins) over time????


0
Comment
Question by:netsdt
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
russgold earned 100 total points
ID: 1230469
If you are writing an application (as opposed to an applet), you can use techniques such as those found in the example BeanBox to discover new classes added to a directory.  By loading those classes, you can test them to see if they conform to a predefined interface which will allow you to use them.

Applets are a bit more limited, in that they can only use classes from their predefined classpath; however, you can always get a class not linked into your applet if you know its full name:

Class newClass = Class. forName( "newPackage.newClass" );

You can then test the class for interfaces, etc.

Once you instantiate an object of this class using a default constructor:

Object myObject = newClass. newInstance();

you can use it in your program as though you actually had "linked" it in.
0
 

Author Comment

by:netsdt
ID: 1230470
Hey Russgold,
Thanks for the prompt reply.
It is you guys who are running this site.Kudos!!!

Now, back to our problem, yes, i wish i could have made it an
application but I can't. I was thinking of using packages...
I could add new packages over time.Your idea sounds nice..
but i'm simply not that experienced..I wish I had an example
from somewhere..

0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question