This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi i'm getting a problem in my TheIcon Class . I am trying to implement a JFileChooser but when i want to use an accessory with it . I want to add an icon at a side which will display a thumbnail of the image being selected . The program works fine without the "TheIcon " class . I'll make the lines as bold where the error is showing . The error is : not a statement File f= (File) e.getNewValue();
Joined: Sep 20, 2008
The error is on line no 97 but i don't know what .
No it isn't. The scope is currently limited to that line only, because you've got an if statement (line 96) with no brackets following. Which means that only the following line is within the if block. You need to put brackets round the entire following block.
shouldn't it work because the == checks for the same memory location and e.getPropertyName() would return a string at the same memory location as the JFileChooser's static string SELECTED_FILE_PROPERTY_CHANGED ???