Solved

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

Posted on 1997-11-12
2
217 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Suggested Solutions

Title # Comments Views Activity
ejb stateless example 2 67
ejb entity bean example 2 57
jsp CRUD operations with and without prepared statement also hibernatge 1 49
learn programming 8 94
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
I made this because I wanted to get e-mail with a attached csv file so I'd would be able to import user input into a MS Excel template, but I also wanted to register/save all inputs from each day in a file on the server. 1st - It creates a temp C…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses

734 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