> i have 3 .java files that make up an application.
> DrawJPanel.java Elevator.java and
> MyRectangle.java.............i would like to put
> DrawJPanel.java and MyRectangle.java into
> Elevator.java.....and i'm not quite sure how that
> works......help would be appreciated
What do you mean by "putting source files into other source files"? What are you trying to accomplish exactly?
inner classes allow you to put multiple classes into a single file thusly
class Elevator{
static class DrawPanel{
} // end class DrawPanel
static class MyRectangle{
} // end class MyRectangle
} // end class Elevator
Doing it this way means that the actual name of the DrawPanel class is not really DrawPanel, it is Elevator.DrawPanel. Other than that things are pretty much as you would expect.
When you start using inner classes you begin to cross into religious territory and risk violating some deeply held belief systems. But there are those of us that believe that whatever you choose to do in the privacy of your own home with your own compiler is really none of our business, at least as long as the compiler consents, of course.
Enjoy.