November 19, 2011 · 1 min read
**1.** [Difference between skip() and seek()](http://way2java.com/io/randomaccessfile-reading-sequentially-and-randomly/) **2.** [Java Number Formatting](http://way2java.com/java-lang/number-formatting/) **3.** [How RadomAccessFile is different from other streams?](http://way2java.com/io/randomaccessfile-reading-sequentially-and-randomly/) **4.** [Can you retrieve a disk file metadata from Java program?](http://way2java.com/io/file-class-%e2%80%93-retrieveing-metadata-of-file/) **5.** [StringTokenizer](http://way2java.com/java-util/class-stringtokenizer/) vs [StreamTokenizer](http://way2java.com/io/streamtokenizer-%e2%80%93-tokenizing-a-stream/) **6.** [Observer vs Observable](http://way2java.com/java-util/classes-observer-and-observable/) **7.** [Timer vs TimerTask](http://way2java.com/java-util/timer-and-timertask/) **8.** [final finally finalize](http://way2java.com/java-lang/final-finally-finalize/) **9.** [Frame Position](http://way2java.com/awt-components/frame-position/) **10.** [Generating random colors](http://way2java.com/awt-components/java-random-color/) **11.** [static vs non-static](http://way2java.com/oops-concepts/java-static-vs-non-static/) **12.** [StringWriter vs StringBuilder](http://way2java.com/io/stringwriter-vs-stringbuilder/)
June 20, 2011 · 1 min read
By default the frame, you create, is placed on the **left top corner** of the monitor by JVM. But you can dictate the position. In the following program, the frame is positioned in the center of the monitor. The task here is, you must get the screen (monitor) size and your frame size dynamically throuh the program. Once you get these, with **setLocation()** method, the fame can be positioned on the display screen where you would like.