nK0de's Profile
Reputation: 204
Stalwart
- Group:
- Contributors
- Active Posts:
- 823 (1.58 per day)
- Joined:
- 21-December 11
- Profile Views:
- 14,416
- Last Active:
Apr 16 2013 06:08 AM- Currently:
- Offline
Previous Fields
- Country:
- LK
- OS Preference:
- Windows
- Favorite Browser:
- FireFox
- Favorite Processor:
- Intel
- Favorite Gaming Platform:
- PC
- Your Car:
- Who Cares
- Dream Kudos:
- 25
Latest Visitors
-
Isuru Nanayak... 
12 May 2013 - 04:19 -
darek9576 
01 May 2013 - 20:30 -
Raminator 
26 Apr 2013 - 11:48 -
CharlieMay 
14 Mar 2013 - 09:58 -
CodingSup3rna... 
11 Feb 2013 - 08:36 -
istore221 
20 Jan 2013 - 04:25 -
raghav.nagana... 
21 Nov 2012 - 20:50 -
jon.kiparsky 
18 Nov 2012 - 00:15 -
Ionut 
09 Nov 2012 - 08:51 -
modi123_1 
25 Oct 2012 - 08:09
Posts I've Made
-
In Topic: your life?
Posted 28 Dec 2012
-
In Topic: What show are you currently watching?
Posted 28 Dec 2012
I watch only 2 shows. I don't wanna start new ones 'cause if I do, I'd get hooked on and be tempted to watch every episode up to now in a stretch and that would hinder me from doing the important stuff I'm supposed to do.
How I Met Your Mother - I'm starting to dislike this show. Too many break ups, make ups, pussy out during the last minute at weddings. I mean, wtf! It used to be a really god show.
Game of Thrones - I fucking love this one! Can't wait for the Season 3!
-
In Topic: ios apps work with sql type rdbms?
Posted 20 Nov 2012
SQLite is used in iOS devices as the backend database to store data. -
In Topic: Invoking events of a control defined inside a class
Posted 5 Nov 2012
Skydiver : I'm trying to invoke them from anywhere I use the class. I went with your second method an it works great!
Modifying the constructor seems ugly indeed.
tlhIn`toq : Thanks for that piece of information but this one I kinda have to do it in WinForms as this is for my work, not a personal project.
-
In Topic: 'Cannot find symbol' error on setString method
Posted 26 Oct 2012
Yes. I hadn't declared an instance of PreparedStatement class.
package learnjdbc; import java.sql.*; import javax.swing.*; public class NewJFrame extends javax.swing.JFrame { Connection con; Statement st; PreparedStatement pst = null; ResultSet rs; private void btnInsertActionPerformed(java.awt.event.ActionEvent evt) { con = DatabaseHandler.connectToDb(); //this method returns a connection object try { String author = "K.A. Applegate"; pst = con.prepareStatement("INSERT INTO Authors(Name) VALUES(?)"); pst.setString(1, author); } catch(Exception ex) { JOptionPane.showMessageDialog(null, ex.getMessage()); } } }
Now it works fine. Thank you both.
My Information
- Member Title:
- Catch me As Exception
- Age:
- 22 years old
- Birthday:
- October 12, 1990
- Gender:
-
Contact Information
- E-mail:
- Click here to e-mail me
Friends
-

skyhawk133
-

blackcompe
-

H3R3T1C
-

Martyr2
-

no2pencil
-

PsychoCoder
-

KYA
-

BenignDesign
-

baavgai
-

Mikhail
-

gabehabe
-

stayscrisp
-

pbl
-

eclipsed4utoo
-

AdamSpeigh...
-

modi123_1
-

_HAWK_
-

Dogstopper
-

JackOfAllT...
-

absynthe
-

Core
-

SwiftStrik...
-

macosxnerd101
-

e_i_pi
-

maj3091
-

BobRodes
-

kingsonpri...
-

CharlieMay
-

mapmd1234
-

Shane Hudson
-

creativeco...
-

Sergio Tapia
-

Kilorn
-

tlhIn`toq
-

Dormilich
-

Curtis Rut...
-

Atli
-

lordofduct
-

CodingSup3...
-

DivideByZero
-

trevster344
-

GunnerInc
-

DimitriV
-

sandaruwanc
-

evnflow
-

tonzkillera
-

3692
-

Skydiver
-

pradeep1210
-

Gudia catty
|
|


Find Topics
Find Posts
View Reputation Given

|