aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes displaying data from database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "displaying data from database" Watch "displaying data from database" New topic
Author

displaying data from database

thejwal pavithran
Ranch Hand

Joined: Feb 11, 2012
Posts: 118
hi guys,

i have created my first gui projects interface. the interface consists of a few combo boxes and buttons. now what i want is a simple tutorial that teaches me how to retrieve information form a back end database using the values input by the user into the interface. any suggestions?

and i was also wondering where i can learn how to display a new window on clicking a button and also how to display new contents in an already visible window i.e wiping off entire components being displayed on a window and replacing them with new components.

on job hunt
Lalit Mehra
Ranch Hand

Joined: Jun 08, 2010
Posts: 384

please let us know how you have developed your code ... everytime you ask something do post relative content like your code with it

you can learn opening a new window from www.w3schools.com


http://plainoldjavaobject.blogspot.in
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4658
    
    5

Lalit Mehra wrote:you can learn opening a new window from www.w3schools.com

What does anything on that site have to do with Swing? or indeed Java?


luck, db
There are no new questions, but there may be new answers.
Lalit Mehra
Ranch Hand

Joined: Jun 08, 2010
Posts: 384

Darryl Burke wrote:
Lalit Mehra wrote:you can learn opening a new window from www.w3schools.com

What does anything on that site have to do with Swing? or indeed Java?


well he asked about opening a new window on a button ... so i answered him the same ... i know there's nothing on that site related to java ... but yes there are things he can learn from there which java has to work with ... like something he asked about ... chao

chill
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18907
    
    8

Lalit Mehra wrote:i know there's nothing on that site related to java ...


In other words the link was completely irrelevant.

but yes there are things he can learn from there which java has to work with


It's possible that eventually he might come to some tutorial which explained how to open a browser window with Javascript, or something which sounds superficially the same but in reality is completely different.

Please don't post such useless things in future.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18907
    
    8

thejwal pavithran wrote:now what i want is a simple tutorial that teaches me how to retrieve information form a back end database using the values input by the user into the interface. any suggestions?


Bringing the thread back on topic... what you would use for retrieving information from a database is JDBC. Here's a link to Oracle's JDBC tutorial: Lesson: JDBC Basics.

and i was also wondering where i can learn how to display a new window on clicking a button and also how to display new contents in an already visible window i.e wiping off entire components being displayed on a window and replacing them with new components.


Usually you wouldn't do that. It's best to think of a GUI panel as something whose contents are fixed, more or less. So if you want to show a panel with completely different information, you should create a new panel which contains that different information and display that panel instead of the old panel. There are several different ways of doing that and I don't want to recommend a particular one. At any rate you probably don't know enough about Swing to understand the pros and cons of those different ways anyway, so at this point you should really just start experimenting with Swing. Go through Oracle's Swing tutorial: Trail: Creating a GUI With JFC/Swing for a start and work with the examples you'll find there.
Lalit Mehra
Ranch Hand

Joined: Jun 08, 2010
Posts: 384

I I Captain ... I thought he needed an advice ... anyways ...
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19761
    
  20

Lalit Mehra wrote:I I Captain ...

I think you mean "Aye aye Captain"


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: displaying data from database