Solved

Demo of a swing application that uses an editable grid

Posted on 2004-09-20
8
338 Views
Last Modified: 2008-03-06
I want to create a swing application that uses a grid that you can edit and possibly sort. I know a little about labels, text fields, and buttons, but know nothing about a grid control. Can anyone point me to a source where I can find examples/demos?

Thank you for your help.
0
Comment
Question by:EwS
  • 2
  • 2
  • 2
  • +1
8 Comments
 
LVL 37

Expert Comment

by:zzynx
ID: 12102623
>> I want to create a swing application that uses a grid that you can edit and possibly sort.
You mean a table?
0
 
LVL 37

Expert Comment

by:zzynx
ID: 12102654
>> You mean a table?
of which you can
- edit the cell values
- sort the rows according to a certain column

?
0
 

Author Comment

by:EwS
ID: 12102842
Yes, that's exactly what I need.
I also want a blank row at the bottom and be able to disable (gray out) and lock (can't edit) a range of cells, but I assume that's easy to do.
Yet, is it possible to place a button on top of a cell so that is looks like the part of it and when it's clicked, it displays a list, you select an entry from the list, and your selection is put back in the table cell?
0
 
LVL 12

Assisted Solution

by:Giant2
Giant2 earned 200 total points
ID: 12102862
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 3

Accepted Solution

by:
nesnemis earned 300 total points
ID: 12102898
You can look at http://java.sun.com/docs/books/tutorial/uiswing/components/example-swing/ => tablesorterdemo.java

This is a table where you can edit some of the fields and you can sort all columns
0
 

Author Comment

by:EwS
ID: 12103369
All the comments were exremely helpful to me and prompt.
Please understand that I would like to give 500 points to one person, but I feel in this case it would be unfair, so I'm spliting the points between Giant2 (200 points) and nesnemis (300 points).  

Thank you for your help!
0
 
LVL 3

Expert Comment

by:nesnemis
ID: 12103452
you're welcome!
0
 
LVL 12

Expert Comment

by:Giant2
ID: 12109402
Thanks.
Happy to help you.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
groupSum6 challenge 6 76
Java Options in Zimbra Server 2 44
couple of eclipse 5 19
xampp tool 12 24
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This video teaches viewers about errors in exception handling.

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now