Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-07-2007, 02:41 AM
Member
 
Join Date: Jul 2007
Posts: 35
carl is on a distinguished road
Help with JTable in java
Hi, Insert row and column. and delete row and column in JTable need create the database or not?

Thanks.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-07-2007, 08:06 AM
Member
 
Join Date: Jul 2007
Posts: 40
lenny is on a distinguished road
I dont understand what you actually want, but this link should help you out.

How to Use Tables (The Java™ Tutorials > Creating a GUI with JFC/Swing > Using Swing Components)
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 08-11-2007, 09:41 AM
Member
 
Join Date: Aug 2007
Posts: 2
Rohendra is on a distinguished road
adding new row
I am selecting multiple files from FileDialog & adding it to a JTable
Everything is working fine..
the problem(which has troubled me for last 3 days) is that the no. of rows are added but its content are same as that of last file in the FileDialog..
I mean to say that rows are added with same content..
plz help!
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 08-11-2007, 10:47 PM
JavaBean's Avatar
Moderator
 
Join Date: May 2007
Posts: 1,272
JavaBean is on a distinguished road
That should be an object reference issue. Make sure you are not using same object reference while you are adding the objects to the table! The problem is most probably this. In your data model for table, you are holding references to the same object which is pointing to the last file in the FileDialog..
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ResultSet to JTable Java Tip Java Tips 0 02-11-2008 10:01 AM
How to add in a new row in Jtable? Ry4n AWT / Swing 0 01-18-2008 01:26 PM
Help with application with JTable cachi AWT / Swing 2 08-08-2007 09:51 AM
Help with JTable fernando AWT / Swing 1 08-07-2007 07:57 AM
header of jtable bbq AWT / Swing 1 07-05-2007 05:11 AM


All times are GMT +3. The time now is 11:42 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org