Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Spring Framework | Web Services | BioInformatics | Java Server Faces | Jboss 3.0 tutorial | Hibernate 3.0 | XML

Tutorial Categories: Ajax | Articles | JSP | Bioinformatics | Database | Free Books | Hibernate | J2EE | J2ME | Java | JavaScript | JDBC | JMS | Linux | MS Technology | PHP | RMI | Web-Services | Servlets | Struts | UML


 

Java Tutorials


 

 

Struts Tutorials

Struts Resources

Visit Forum! Post Questions!
Jobs At RoseIndia.net!

Java Example Java Swing SetCellValues

User Comments
Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl
  Blink   Furl   Simpy   Y! MyWeb 

Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 

Current Comments

3 comments so far (post your own) View All Comments Latest 10 Comments:

SIR,
A LOT OF THANKS TO YOUR TEAM FOR PROVIDING VALUABLE RESOURCES ON JAVA PROGRAMMING.
I HAVE FACED ONE PROBLEM WHILE DISPLAYING DATA ON JTABLE WITH A "DISPLAY-BUTTON" BY USING JAVA IN NETBEAN6.1.
THE PROBLEM IS THAT- WHEN I TRY TO DISPLAY SOME DECIMAL NUMBER ROWISE,I GAVE A DELAY OF 1 SECOND IN BETWEEN TWO CONSECUTIVE ROWS. BUT, INSTEAD OF GETTING THE DATA ROWSISE WITH THE DELAY, I AM GETTING ALL THE DATA SIMULTANEOUSLY IN ALL THE CELLS OF JTABLE AFTER A DELAY OF 15 SECONDS.BEFORE THAT, THE TABLE WAS BLANK.
MY AIM IS:
A)I WOULD LIKE TO HAVE DATA IN A ROW
B) WAIT FOR 1 SECOND DELAY
C) DISPLAY ANOTHER SET OF DATA IN THE NEXT ROW DURING WHICH THE DATA IN THE PREVIOUS ROW SHOULD BE VISIBLE.
D) AGAIN 1 SECOND DELAY
E) DISPLAY DATA IN THE THIRD ROW

AND SO ON

IN THE ABSENCE OF DELAY DATA IS DISPLAY SIMULTANEOUSLY THROUGH THE LENGTH AND BREADTH OF THE JTABLE. BUT AS SOON AS I GAVE DELAY, AGAIN THE SAME DISPLAY IS OBTAINED AFTER A LONG TIME WHICH IS NOT DESIRABLE TO ME.
PLIZ CHECK THIS PART OF THE JAVA CODE WHICH I HAVE WRITTEN IN NETBEAN6.1:

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
//TODO add your handling code here:

int x,y=0;
int s1=4000;
for( y=0;y<15;y++) //15 ROWS
{
s1=(s1+1);
for( x=0;x<=8;x++) //9 COLUMNS
{
jTable1.setValueAt(s1, y, x);
}
try
{
Thread.sleep(1000);
} catch(InterruptedException e ) {}

}

}

i am waiting eagerly for your reply.

Posted by KUMARJIT HIDAM on Sunday, 10.5.08 @ 14:07pm | #80905

I WOULD LIKE TO ENTER DECIMAL NUMBER AS DATA IN JTABLE AS IN THE FOLLOWING FORMATE:

A) ENTER THE SAME DATA IN THE CELLS OF FIRST ROW HAVING 10 COLUMNS
B)PROVIDE A DELAY OD 1SECOND DURING WHICH DATA IN THE FIRST SHOULD BE VISIBLE.
C)ENTER THE SAME DATA IN THE CELLS OF THE NEXT ROW.
D) PROVIDE A TIME DELAY OF 1 SECOND DURING WHICH ALL DATA IN THE PREVIOUS ROWS ARE TO BE VISIBLE

AND SO ON AND SO FORTH

Posted by kumajit hidam on Friday, 10.3.08 @ 13:41pm | #80863

Do me favour....?, I'm Newbie

i've been frustated about JTable,i've problem to querying record onto JTable.The Case is:

1. i wanna querying records into JTable but i want to search the record when i type into cell and the record result into JTable.

2. i wanna records When the program running in the blank position

examples :
i wanna search The Name of James and all about james result into JTable

position :
=================================================
|Names | Nick Names |Address | Gender | Phone |
=================================================
..... | | | | |
=================================================
^
|
Type here and the records results into JTable, results :

=================================================
|Names | Nick Names |Address | Gender | Phone |
=================================================
James |Bond |Lake City| Male |12345 |
=================================================

can you help me,please give me the sample source code and send into my email address,cos i'm newbie and start to begins java program.Thank Before and Thanks a lot.

Posted by Fajar Arianto on Tuesday, 04.1.08 @ 22:17pm | #55053

Ask programming questions?

 

 

Back to Tutorial

 

  JDO Tutorials
  EAI Articles
  Struts Tutorials
  Java Tutorials
  Java Certification

Tell A Friend
Your Friend Name

 

 
Browse all Java Tutorials
Java JSP Struts Servlets Hibernate XML
Ajax JDBC EJB MySQL JavaScript JSF
Maven2 Tutorial JEE5 Tutorial Java Threading Tutorial Photoshop Tutorials Linux Technology
Technology Revolutions Eclipse Spring Tutorial Bioinformatics Tutorials Tools SQL
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright 2007. All rights reserved.