JTree Help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • uhdam
    New Member
    • Mar 2009
    • 50

    JTree Help

    In java, How to make a class identify its method when more than one class is present.

    Thats suppose i have 4 classes namely class1,class2,c lass3 & class4 and i have one method in each class namely method1 under class1,method2 under class2, method3 under class3 and method4 under class4.

    How to print method1 alone under class1 and
    method2 alone under class2 and so on.

    I am using a JTree.

    Thank you
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Are you using reflection to get the methods in each class?

    Comment

    • uhdam
      New Member
      • Mar 2009
      • 50

      #3
      I am not using reflection but the tree value is changing. The class values and the method values change at runtime.

      Comment

      • uhdam
        New Member
        • Mar 2009
        • 50

        #4
        How to access the same when the data is stored in XML files.

        Comment

        • uhdam
          New Member
          • Mar 2009
          • 50

          #5
          Please Help.. A bit Urgent..

          Comment

          • JosAH
            Recognized Expert MVP
            • Mar 2007
            • 11453

            #6
            Originally posted by uhdam
            Please Help.. A bit Urgent..
            According to your OP you have a bunch of classes with one single method each. What do you want to do with objects of those classes? I don't understand your problem.

            kind regards,

            Jos

            Comment

            Working...