This discussion is archived
1 Reply Latest reply: Nov 6, 2012 10:32 AM by morgalr RSS

Calling method from one class to another

972600 Newbie
Currently Being Moderated
Good afternoon guys!

I'm doing a report in the Swing interface using a directory to create a JTree with the reporting hierarchy and I have to put in each report some JComboBox as filters.

I want to put these filters in a class and when I select a specific report and a button, the panel with my filters appear in a main panel already implemented in my main class, so I think it would have to have a method of filters in a another class.

I wish I had something like this:

http://img404.imageshack.us/img404/6783/reportm.jpg

Could someone give me a hint, I'm late with this company's work!
Thank you!

Edited by: 969597 on 06/11/2012 09:41
  • 1. Re: Calling method from one class to another
    morgalr Explorer
    Currently Being Moderated
    I am not sure what you are saying from your statement, but:

    You can include any level of chaining calls to classes as you want to get the desired result as long as your caller has visibility to the object you need. You will need to implement the filters, and then call them from the object that will use it. That object can in turn be called and instansiated in a higher level of objects.

    If this does not help, I'll need more of descripiton of what you need to be more helpful.

    If you're looking for someone to code you an answer---it isn't going to happen.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points