java


Netbeans - Error when trying to input Date and RadioButtons


public void input(){
java.sql.Connection conn = new koneksi.koneksi().connect();
try{
String sql = "insert into login "
+ "(nama,pass,kelamin,tempat_lahir,tanggal_lahir,jalan,kota,provinsi,negara,kode_pos,email,telepon) "
+ "values(?,?,?,?,?,?,?,?,?,?,?,?)";
java.sql.PreparedStatement stmt = conn.prepareStatement(sql);
stmt.setString(1, nama.getText());
stmt.setString(2, pass.getText());
stmt.setString(3, kelamin.getSelection().toString());
stmt.setString(4, tempat_lahir.getText());
stmt.setString(5, tanggal_lahir.getDate().toString());
stmt.setString(6, jalan.getText());
stmt.setString(7, kota.getText());
stmt.setString(8, provinsi.getText());
stmt.setString(9, negara.getText());
stmt.setString(10, kode_pos.getText());
stmt.setString(11, email.getText());
stmt.setString(12, telepon.getText());
stmt.executeUpdate();
JOptionPane.showMessageDialog(null, "Input Success ");
}catch(SQLException ex){
JOptionPane.showMessageDialog(null, "Input Failed");
}
}
it can't get into my database, and the stacktrace still fine
this is what my sql server look like (Click this to see pic)
this is what my design/project looks like (Click this to see pic)
okay, i take some problem core
stmt.setString(5, tanggal_lahir.getDate().toString());
or
stmt.setString(5, tanggal_lahir.getCalendar().toString());
which one i should use to?
i using jcalendar-1.4.jar in my library and added jcalendar swing to my panel

Related Links

RecyclerView within ViewPager not working
Eclipse: export project such that Windows and Mac can both run it
How to configure jetty in eclipse?
Deploy Eclipse Dynamic Web Project To Elastic Beanstalk
Define PageSize when converting from HTML to PDF
Spring data mongo criteria where nested field regex search
Relating two tables with composite keys when one column is a derived value
Unable to find properties file
How to loop through a menu expander using java and selenium
Questions about writing a program in Java using Digital signature
i want to count occurrence of each word in a given sentence in java
ERROR:child_thread_impl.cc(762)] Request for unknown Channel-associated interface: ui::mojom::GpuMain
Activate #Transactional only for predefined packages using Java Config
WAS 8.5.5.9 cannot start webapplication because of SRVE0303E
how to write Junit test case for testing duplicate elements in List
can you help me spot the bug?

Categories

HOME
pdf
wso2
webpack
magnific-popup
reflection
electron
razor
yarn
electronics
jgroups
adfs
virtualization
quicklook
modelica
dtrace
iron-router
firefox-webextensions
google-pagespeed
nodatime
jtextfield
grails3
pass-by-reference
realex-payments-api
one-to-many
instant-messaging
bluestacks
usbserial
framemaker
android-kernel
google-api-nodejs-client
jmonkeyengine
plsql-psp
stacked
retina-display
serverside-rendering
android-browser
azure-ml
graphenedb
gzipstream
ncalc
grid.mvc
botbuilder
netcdf4
skeleton-css-boilerplate
logfiles
google-datalayer
jsch
azure-application-gateway
jquery-nestable
winscp-net
r-forge
namecoin
python-cryptography
sonarlint-vs
crosswalk-runtime
instant
httplistener
impresspages
jwplayer7
fadeout
ipconfig
design-by-contract
associative-array
comobject
spidermonkey
libressl
sframe
php-ci
ios9.1
key-management
facebook-graph-api-v2.4
socketexception
html-helper
elliptic-curve
centos5
sharp-repository
automount
ocx
wse3.0
enter
ohm
doh
zpt
genshi
xtype
self-extracting
krl
propagation
pyinotify
coda-slider
filtered-index
swing-app-framework
privilege
temporal-database
nerddinner

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App