Bookmark Topic Watch Topic
  • New Topic

3 qestions regarding jdbc with swing!

 
Mandar Khire
Ranch Hand
Posts: 568
Android Java Linux
  • Mark post as helpful
  • send pies
  • Report post to moderator
As per ShowSomeEffort & SearchFirst
i read as below
1.google
2.read-different-data-one-table

scenario:-
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
2.old_x
3.old_y
4.new_x
5.new_y
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
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!
 
Wendy Gibbons
Bartender
Posts: 1110
Eclipse IDE Oracle VI Editor
  • Mark post as helpful
  • send pies
  • Report post to moderator
After reading the swing thread (as this post really confused me) it appears you no longer need this question, so I am locking it.
 
    Bookmark Topic Watch Topic
  • New Topic