File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes 3 qestions regarding jdbc with swing! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Reply locked New topic

3 qestions regarding jdbc with swing!

Mandar Khire
Ranch Hand

Joined: Sep 11, 2007
Posts: 557

As per ShowSomeEffort & SearchFirst
i read as below

i write this question related to following question which i ask in same forum but in swing.
my reference
i create sql table by MySQL Workbench 5.2 CE
table name= panel_location
columns name= 1. panel_number
right now column 1 panel_number i put hardcore values like 0 to 10.Others are null.

I create 1 java program which contain Jpanels array which are drag & drop any where in big jpanel where they resides, this big jpanel resides in jframe.
positive points:- 1. i can create jpanel array as many as i want by just putting number.
2. i can drag & drop any where any panel in big jpanel.(as many time).
negative point:- 1. Boundry is not set for big jpanel so small jpanels should not drag beyond big jpanel or frame.
2. 2 or more small jpanels can be put on same location.
question 1. how i compare 2 different rows in one table?
question 2. how i check whether row is present or not?
question 3. which book should prefer for know deeply about jdbc & swing?

for easy to answer i post more details here:-
i use

then i use
if this true then i check
if this true then jpanel should place on particular location which i decide
else jpanel should be place on place which co-ordinates are store in sql table.

for update table entries each time i drag & drop any panel
i create function
in that i write sql query.

in mouse released event i write

these (panelname, r1_x, r1_y, new_x, new_y) are defined in mouse drag event.

i hope this much info/efforts is helpful & proper to ask question!

Millions saw the apple fall, but Newton asked why.
Wendy Gibbons

Joined: Oct 21, 2008
Posts: 1107

After reading the swing thread (as this post really confused me) it appears you no longer need this question, so I am locking it.
I agree. Here's the link:
subject: 3 qestions regarding jdbc with swing!
It's not a secret anymore!