This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Display datas from database in a JPanel like a grid view Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Display datas from database in a JPanel like a grid view" Watch "Display datas from database in a JPanel like a grid view" New topic
Author

Display datas from database in a JPanel like a grid view

sum prit
Greenhorn

Joined: Mar 13, 2011
Posts: 14
Hi, can you please help me to get out my problem and provide me some suggestion to continue further, as i am stuck in how to display data taking those datas from database and display in a JPanel.

I need to display parameters like temperature and rainfall in y-axis and corresponding to them i need to display time values in x-axis i.e at a particular time what is the value for the temperature and rainfall.

Thank you in advance. Any small help from you will highly be appreciated.
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4523
    
    5

JFreeChart may be useful for this..


luck, db
There are no new questions, but there may be new answers.
sum prit
Greenhorn

Joined: Mar 13, 2011
Posts: 14
Thank you Sir. But, actually i need to display only the datas like a grid but not the graph. I have found something like using of JTable. But i dont understand it properly that how to use it. Can you provide me a link having example of taking database values and display them in a JTable or some suggestion like that so that i can go further.

Thank you.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19651
    
  18

How to Use Tables. I actually copied that link from the JTable Javadoc page.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
sum prit
Greenhorn

Joined: Mar 13, 2011
Posts: 14
Thank you sir for giving your valuable time. But sir, i have gone through it. Can you give me more suggestion regarding this, if possible can you provide some example which clearly explains it.

Thank you.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Display datas from database in a JPanel like a grid view
 
Similar Threads
JFrame to HTML
Is it possible to give row names and column names for a JTable
pop up window for OSM
refresh a JPanel automatically as time changes
problem in refreshing JPanels in cardlayout