Solved

Demo of a swing application that uses an editable grid

Posted on 2004-09-20
8
337 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
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
IT Company 5 69
array11 challenge 16 52
XML Paring  Error - Premature end of file. 7 57
github account with ecipse 1 20
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

743 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

11 Experts available now in Live!

Get 1:1 Help Now