?
Solved

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

Posted on 1997-11-12
2
Medium Priority
?
228 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 300 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Suggested Courses
Course of the Month11 days, 16 hours left to enroll

752 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