Pages

Thursday, February 11, 2010

My case of: Jasper Report won't run

___________________________________________________________


We have a system that would print student profile, on our implementation we used the jar file to execute the system for our demo. Then we found out that one function is not working.

Case: when I clicked the JButton that triggers Jasper reporting, the preview of the document wont show up. It appears in other computers but some other pc units wont, too.

After how many trials, debugging and troubleshooting, we decided to install the IDE in the deployment PC. Then we saw the bug, at last.

Bug: No FONT installed. We used a font in the development environment where that font is not installed in the PC of the deployment environment. So that what kept our project delayed for a week. lol.


___________________________________________________________

Tuesday, February 9, 2010

My TOP 2 Netbeans IDE 6.7.1 Annoyance

1. When I type JOptionPane then hit the period "." key the available attributes should appear but as I type JOptionPane.showConfirmDialog and put 4 parameters, the last parameter won't auto complete anymore. I am supposed to put JOptionPane.YES_NO_OPTION, now I have to type every letter of it. So annoying for me.

2. The codes won't 'refresh' right away. Sometimes I have to run my program 3 times for my changes in the code to take effect. Soooo annoying.

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.


***