- Real numbers are treated as double unless specifically flagged as float by marking the value with an 'F'
- java.io.File is a pointer to the file rather than a reference to its location and by itself does not encapsulate the physical file.
- Integer values are treated as "int" rather than long,
- so long micros = 24*60*60*1000*1000 would result in a value different from expectation. so flag the values with an 'L' if you don't want them to be messed with
- When using BigDecimal, pass a String representation of the double value rather than the double value to the constructor.
- Use fill with GridBagLayout else the component won't occupy the grid area
- painting is at two level, System event; when a component is added or removed and VM event; when a component is resized
Tuesday, July 04, 2006
Some basics of Java which I regularly forget
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment