Changeset 984


Ignore:
Timestamp:
12/14/15 13:47:27 (8 years ago)
Author:
davidb
Message:

Code tidy up

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/gui/FrameGraphics.java

    r980 r984  
    651651            try {
    652652                Class<?> c = Class.forName(input);
    653                 System.out.println(c.toString());
    654                 Object t;
    655                
    656                 t = c.newInstance();                                           
    657653               
    658654                Class[] cArg = new Class[3];
     
    661657                cArg[2] = Dimension.class;                                                     
    662658               
    663                 //Gets the method of transition and calls it                                           
    664                 Method lMethod = c.getDeclaredMethod(slide_mode_method, cArg); 
     659                //Gets the method of transition and calls it
     660                Method lMethod = c.getDeclaredMethod(slide_mode_method, cArg);
    665661               
    666662                if(lMethod != null){
    667                    
    668                     System.out.println("method = " + lMethod.toString());                                                                                           
    669                     Object o = lMethod.invoke(t, g, image, _MaxSize);
     663                    // calling static method, so no class parameter needed
     664                    Object o = lMethod.invoke(null, g, image, _MaxSize);
    670665                }
    671666                else{
Note: See TracChangeset for help on using the changeset viewer.