Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

GUI help

 
Mai Vala
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,
I am designing a GUI for DB operations.I am facing a problem while inserting data.
I have retrieve all the columns from table and then depending on the type I have to give the values for the fields to insert data.
Kindly help me with any ideas.
I am using java swings in netbeans.
 
Rob Spoor
Sheriff
Pie
Posts: 20532
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Mai,

First of all, welcome to the Ranch!

Now, getting to business:
1) Please UseAMeaningfulSubjectLine. 90+% of all threads in this forum are about GUI help.

2)
swings

Swing Is A Proper Noun.

As for your question, most database systems have their own internal conversion from string to the required type. You could use that.
 
Mai Vala
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

let me be clear with the question.
See the user just types in the table name and he doesn't know any thing about the fields in the table.I think for this we need the desc of the table and then looking at the desc he would enter data.This is purely gui based DB operations.From the front end only the user can operate on database.
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> let me be clear with the question.

it's not clear to me.

> See the user just types in the table name and he doesn't know any thing about the fields in the table.

why would I type in the table name?
where would I type it?

this really sounds like there's no gui at all
 
Rob Spoor
Sheriff
Pie
Posts: 20532
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mai, please read your private messages.
 
Darryl Burke
Bartender
Posts: 5126
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob Camick's Table From Database may help.
http://tips4java.wordpress.com/2009/03/12/table-from-database/
 
Mai Vala
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
my application resembels an application called SQL Maestro for MySql.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic