Abstract Java Grid

I'm looking for an abstract representation of a grid in Java (grid as in that thing with columns and rows of data). Do such things exist? I want to be able to sort, filter, keep track of rows, set column properties etc. I'll then be realising the grid on the web.

To be clear: I've already decided on the ultimate view technology (client side). The thing I'm looking for will hold all the records and offer them up as the view demands.

Asked by: David235 | Posted: 21-01-2022

Answer 1

Have a look to this tutorial from Sun about the tables in java. It gives a good idea on how to implement the model.

Tutorial on tables in Java

Answered by: Grace942 | Posted: 22-02-2022

Answer 2

JTable is what you are looking for.

Answered by: Arnold542 | Posted: 22-02-2022

Answer 3

You can reuse the table models of the Glazed Lists project (provided that you can hook your web view to a regular TableModel)

Answered by: Grace902 | Posted: 22-02-2022

Similar questions

java - What is a good toolkit for developing Blackberry applications?

Looking for a toolkit/SDK for general Blackberry development or application toolkits. Anything like an MVC framework?

apache flex - Client Java vs (Adobe) Flash for web applications, what to choose and when

A few years ago client Java was unsuitable for web development because a remarkable part of web users did not have Java installed. ( I don't remember exact numbers, more than 10%). Now I see the Google Analytics stats for a big site and it tells that >98% of users have Java installed. Is these stats very biased by Javascript usage? As I understand Google Analytics measure only users that has Javascript.

java - What would be the best way to match up two object instances between two different applications in a J2EE server?

I have a J2ee application where I basically want two objects, created by two separate servlets to communicate directly and I need these intances to be stable, i.e. to "know" each other during the session. The sequence is roughly: Client sends a request to Servlet #1, which creates object A Client sends a second request (after the first returns) to servlet #2 which creates object B. ...

web applications - Is there a tool to generate web pages based on Java beans?

Is there a tool that will take you java beans (pojos) and automatically make them a form for a webpage? To be more clear I have a bunch of Jaxb objects that I want to be able to display in a form without having to code a bunch of html. Is there a tool that will read the jaxb objects and generate the editable form for me? Also, this needs to run on a glassfish server...

What do I need to write Java-based web applications and test them on my personal computer?

I currently have Apache HTTP Server, but I'm guessing I'll need Tomcat (and then have to configure it in a way that makes it not open to the public), a Java JDK (which I already have, but should probably update), and an IDE (I have Eclipse). But what else should I have or know before starting?

java - How does IIS compare in terms of performance and scalability to weblogic and websphere for enterprise web applications?

Closed. This question is opinion-based. It is not c...

c# - IPC between .NET and Java client applications

I must get two different client application talk without any kind of broker or server. What is the best method for IPC beween two process, Java and .NET? It must able to be work in multi-user termainl server, so no socket please. I wish that it is lightweight and simple, something plug and run, so no RMI/WS please. I'm now thinking about JNI to access Mutex and Named pipes, am I going to a right direction?

Is Java suitable for "Web 2.0" applications?

Closed. This question is opinion-based. It is not c...

How to develop multi-touch applications in Java?

Anticipating the day when multi-touch interfaces become more pervasive, are there libraries in Java that can be used for developing touch applications? I'm looking for interfaces similar to MouseListener / MouseMotionListener / MouseWheelListener.

web applications - What is a good embeddable Java LDAP server?

I'm working on a Java web application that integrates with a few other external applications that are deployed along with it. Authentication information must be synchronized across everything and the other applications want to authenticate against LDAP. The application will be deployed in environments where there will be no other LDAP server for everything to use; I have to provide it. My solution so far has been to use

Still can't find your answer? Check out these amazing Java communities for help...

Java Reddit Community | Java Help Reddit Community | Dev.to Java Community | Java Discord | Java Programmers (Facebook) | Java developers (Facebook)