aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes GUI help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "GUI help" Watch "GUI help" New topic
Author

GUI help

Mai Vala
Greenhorn

Joined: Mar 31, 2010
Posts: 14
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

Joined: Oct 27, 2005
Posts: 19720
    
  20

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.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Mai Vala
Greenhorn

Joined: Mar 31, 2010
Posts: 14
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

Joined: Jun 09, 2003
Posts: 4632
> 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

Joined: Oct 27, 2005
Posts: 19720
    
  20

Mai, please read your private messages.
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4642
    
    5

Rob Camick's Table From Database may help.
http://tips4java.wordpress.com/2009/03/12/table-from-database/


luck, db
There are no new questions, but there may be new answers.
Mai Vala
Greenhorn

Joined: Mar 31, 2010
Posts: 14
my application resembels an application called SQL Maestro for MySql.
 
wood burning stoves
 
subject: GUI help