aspose 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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 19541
    
  16

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.

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Boolean Question in SimpleTableDemo.java Sun sample prog
 
Similar Threads
JTable
JTable
JTable : Setting Column Resize Off On MarginChanged Event
JTable is not inserting the data
how to execute simple swing program