Solved

Demo of a swing application that uses an editable grid

Posted on 2004-09-20
8
351 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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

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 …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

688 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