Archives
Twitter
- Short Ad can be used via SMS now. It will also let users block specific senders or totally opt out from the service. 2 minutes ago
- @junal thanks bro! 5 hours ago
- 2nd power cut in the evening. Laptop running out of charge! 1 day ago
- Monitoring Laptop Charge with Python on Ubuntu / Linux-Mint :- http://bit.ly/bw0PeG #ubuntu #python 2 days ago
- Activated Gmail's priority inbox feature! 2 days ago
- @thehungrycoder thanks bro! 4 days ago
- @mdshaonimran Thanks :) 4 days ago
- Updating status from my Compaq Presario CQ42-220TU... At last I got my own Notebook... =) 5 days ago
- I liked a YouTube video -- Tarzan (Two Worlds) http://youtu.be/s0sZ8xZ_dWY?a 5 days ago
- I favorited a YouTube video -- Tarzan (Two Worlds) http://youtu.be/s0sZ8xZ_dWY?a 5 days ago
Tag Archives: java
Using Scanner to determine EOL in Java
The java.util.Scanner is widely used for scanning inputs from the System.in object. We can easily detect an EOL with the hasNext() method of this object. When we type in the EOL, the method return false. Here is an example: public … Continue reading
Java GUI Demo – 001
Here’s a Java GUI program I wrote a while ago… It uses the Graphics, JPanel and JFrame classes to build a windowed application that draws a cross on the canvas using the drawLine() method of the java.awt.Graphics object. import java.awt.Graphics; … Continue reading
JOptionPane – Swing with Java
I just love the Swing library of Java for desktop GUI development. Here’s a very simple example of JOptionPane that prompts for the user’s name and then displays it inside another dialog box. import javax.swing.JOptionPane; public class masnun { … Continue reading