Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

[ASK] Temporary Fingerprint Scanner Save File

1002188Apr 10 2013 — edited Apr 10 2013
Hi all
i have a problem with my project to pass the graduation..
i try to make a attendance fingerprint system..

my problem is when i scan my fingerprint and save my fingerprint template.. and then i close my netbeans...
the save file is not save, being deleted... and i must scan my fingerprint again if i want to verification them..

anyone can help my problem..

thanks...

--- Here The code ---
private void onSave() {
		JFileChooser chooser = new JFileChooser();
		chooser.addChoosableFileFilter(new TemplateFileFilter());
		while (true) {
			if (chooser.showSaveDialog(this) == JFileChooser.APPROVE_OPTION) {
				try {
					File file = chooser.getSelectedFile();
                                        //file="xxx";
					if (!file.toString().toLowerCase().endsWith(".fpt"))
						file = new File(file.toString() + ".fpt");
                                               // file=file.toString()+".fpt";
					if (file.exists()) {
						int choice = JOptionPane.showConfirmDialog(this,
							String.format("File \"%1$s\" sudah ada.\nApakah mau mengganti?", file.toString()),
							"Penyimpanan Sidik Jari",
							JOptionPane.YES_NO_CANCEL_OPTION);
						if (choice == JOptionPane.NO_OPTION)
							continue;
						else if (choice == JOptionPane.CANCEL_OPTION)
							break;
                                    }
					FileOutputStream stream = new FileOutputStream(file);
					stream.write(getTemplate().serialize());
					stream.close();
				} catch (Exception ex) {
					JOptionPane.showMessageDialog(this, ex.getLocalizedMessage(), "Penyimpanan Sidik Jari", JOptionPane.ERROR_MESSAGE);
				}
			}
			break;
		}
	}
Edited by: 999185 on Apr 10, 2013 2:59 AM

Comments

Marc Sewtz-Oracle

Hi - I have not heard of performance issues with tabular forms using IE before. Is this just a plain, standard, wizard-generated tabular form? Perhaps you could re-create a tabular form page that has these issues in a workspace on apex.oracle.com and point me to that example, so I can take a close look at what might be causing this?

Thanks,

Marc

Turlock22

Hi Marc

Thanks for coming back, I tried to recreate the issue on apex.oracle.com but the issue won't replicate in 5.1, my current version is 5.0.4, is there a version of that available for testing?

Yeah the issue is with a completely bog standard MRU table, so I get a hundred row table with about 10 columns (although really doesn't need that many rows at all), include all columns for updating and as I scroll through the page the browser slows down to bits.

It only happens when I scroll over the MRU table, so further down the table there's charts etc, once the MRU's are off the screen everything speeds right up

Hard to show it without a demo, I'll look into upgrading to 5.1 but that probably won't be for a while

Turlock22

Oh and just to confirm I've installed Fiddler to monitor web traffic and when it's going slow there's no traffic going up and down, so it literally just seems to be a rendering issue with the screen in IE, very odd :/

1 - 3
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on May 8 2013
Added on Apr 10 2013
2 comments
2,024 views