Pages

Friday, December 11, 2009

Flow chart of Fibonacci Series - 1 1 2 3 5 ...

Fibonacci series (1 1 2 3 5 8 13 21 34 55 89 ... )

This is the flowchart. Sorry it doesn't look nice, I made it in Raptor and edited in MSPaint. Hope it helps. If you want the Raptor file please comment in this post. Thank You. :)
Click the image for a larger view.

Thursday, December 10, 2009

How to Check if Radio Button is Selected or Deselected in Java

***

I can't seem to find an easier way to do this, or perhaps this is the only way since RadioButton depends on the action listener. Here's my code:


private void radioButtonActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
count++;
int ans = count%2;
if( ans == 0){
//radio button is deselected
}else{
//radio button is selected
}
}



***

Monday, November 23, 2009

How to Add Formatted Text Field in Netbeans: Limit the Input in Java Text Field

---

Formatted text field is a feature in Java programming that lets you control the input in your JTextFields.

In Netbeans IDE, you cannot just edit the codes anywhere you like it if the GUI is generated by the IDE. This may mean that putting your formatting code would take you some time by overriding the class, function, etc (That's how you usually customize Netbeans - generated codes). However, there's a shorter way to do that, follow these steps:


1. Right click on the JFormattedTextField and select Customize Code

click the image for a larger view

2. Code it!

Be sure you get to see the Code Customizer dialog box of Netbeans that look like this:


Note 1: Declare and instantiate the Maskformatter just once.

Note 2: Define the maskformatter. Search the net for ways you could manipulate the MaskFormatter's functions :P

***

Sunday, November 22, 2009

JFREECHART CLOSING APPLICATIONFRAME

-


Using JFreeChart?? Have problems in closing the APPLICATIONFRAME????

CLICK HERE.


-

Monday, November 2, 2009

How to Create a Foreign Key in MySQL Query Browser

**
Know how. Click here.


***

Sunday, October 18, 2009

WELCOME!

Cheers!

This is me on my technical side. I will post technical stuffs here about programming and the like. Hope this blog helps. ^_^

Technical Documentation

I've read this witty article online after our Project Manager "would probably" ask us to write a documentation of our codes. This is from the site of Jeff Atwood - Coding Horror. I'd like to share this to you, hope it would "help". ^_^

Welcome to the world of technical documentation!

The situation you are in is no different from any other tech writer. The technical writing process:

  1. Ask engineer how the damn thing works.
  2. Deafing silence.
  3. Crickets.
  4. Tumbleweed.
  5. Just start writing something. Anything.
  6. Give this something to the engineer.
  7. Watch engineer become quite upset at how badly you've missed the point of everything.
  8. As the engineer berates you, in between insults he will also throw off nuggets of technical information.
  9. Collect these nuggets, as they are the only reliable technical information you will receive.
  10. Try like hell to weave together this information into something enlightening and technically accurate.
  11. Go to step 6.

Ok, you're not the doc writing type. That's okay, neither am I. However, people are already working to make this better, and I will continue to do so.




Well, I think I just have to learn the art of documentation. :P