Solved

Demo of a swing application that uses an editable grid

Posted on 2004-09-20
8
350 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
LVL 12

Assisted Solution

by:Giant2
Giant2 earned 200 total points
ID: 12102862
0
 
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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
login jsp example 24 87
Delete Android all or certain applications data programmatically 9 113
String array comparison 4 46
Crystal Reports Licensing Questions 4 65
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

726 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