Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
    Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

3 qestions regarding jdbc with swing!

Ranch Hand
Posts: 630
Android Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
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!
Posts: 1111
Eclipse IDE Oracle VI Editor
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
What? What, what, what? What what tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic