File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Boolean Question in SimpleTableDemo.java Sun sample prog Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Boolean Question in SimpleTableDemo.java Sun sample prog" Watch "Boolean Question in SimpleTableDemo.java Sun sample prog" New topic
Author

Boolean Question in SimpleTableDemo.java Sun sample prog

Geoff Jefferson
Ranch Hand

Joined: Apr 09, 2009
Posts: 102

How does the boolean value DEBUG ever get changed?



Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19651
    
  18

By reassigning it? This flag is probably meant as a means to switch debugging on and off quickly. It should probably be static and final, making it a constant. The developer then sets it to true when he needs to debug, and back to false when he deploys it.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Geoff Jefferson
Ranch Hand

Joined: Apr 09, 2009
Posts: 102
That's kinda' silly to put in an educational example I think.
Muddies the water.

Thanks.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Boolean Question in SimpleTableDemo.java Sun sample prog
 
Similar Threads
how to execute simple swing program
JTable
JTable : Setting Column Resize Off On MarginChanged Event
JTable
JTable is not inserting the data