Changeset 984 for trunk/src/org/expeditee
- Timestamp:
- 12/14/15 13:47:27 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/gui/FrameGraphics.java
r980 r984 651 651 try { 652 652 Class<?> c = Class.forName(input); 653 System.out.println(c.toString());654 Object t;655 656 t = c.newInstance();657 653 658 654 Class[] cArg = new Class[3]; … … 661 657 cArg[2] = Dimension.class; 662 658 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); 665 661 666 662 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); 670 665 } 671 666 else{
Note:
See TracChangeset
for help on using the changeset viewer.