TableGrid « Swing « Java Articles

Java Articles
1. Class Definition
2. Data
3. Development
4. GUI
5. J2EE
6. J2ME
7. JavaBeans
8. Language
9. Microsoft Collabration
10. Network
11. Swing
12. System Resource
13. XML
Microsoft Office Word 2007 Tutorial
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Products
Java by API
C# / C Sharp
C# / CSharp Tutorial
ASP.Net
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
PHP
Python
SQL Server / T-SQL
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Java Articles » Swing » TableGrid 
1. Manage distributed JTables
Author:Jeremy Dickson
URL:http://www.javaworld.com/javaworld/javatips/jw-javatip137.html?
Summary: When displaying tables with tens of thousands of rows (or more), it is imperative they quickly respond and display. One way to achieve this is by using a specialized TableModel that retrieves data from a server only when it is required, thereby minimizing data download. To further improve efficiency, row data can be retrieved in chunks of 50 rows and cached on the client side for future use. This article explains how to write such a distributed table and presents some of its advantages. (1,500 words; April 18, 2003)


2. Add multiple JTable cell editors per column
Author:Tony Colston
URL:http://www.javaworld.com/javaworld/javatips/jw-javatip102.html?
Summary: By default, the Swing JTable component allows only one editor type per column. In most cases, all cells in a JTable column are of the same class and thus can be edited with the same editor type. However, occasionally you may want a single column to contain objects of different classes and a different editor for each class. One such example is a property page from Visual Basic or Delphi. This article shows you how to extend JTable to allow for more than one editor in a column. (700 words)


3. Set your table options -- at runtime!
Author:Sonal Goyal with John D. Mitchell
URL:http://www.javaworld.com/javaworld/javatips/jw-javatip116.html?
Summary: The JTable class offers rich functionality for grid-like data display. This Java tip addresses common display issues related to dynamically changing such things as scroll bars, column width, and row height. (900 words; September 14, 2001)


4. Enable copy and paste functionality between Swing's JTables and Excel
Author:Ashok Banerjee and Jignesh Mehta
URL:http://www.javaworld.com/javaworld/javatips/jw-javatip77.html?
Summary: JTables and Excel charts are commonly used to display data in a grid or table. Often, the data that the user wishes to enter into a JTable already exists in Excel spreadsheets. The Excel format is used for export-import functionality by software other than Excel. Because of this, it is important that Java software also provide common clipboard functionality, like copy and paste, between JTables and Excel. This article shows how to enable Java programs to copy data from JTables into Excel using the system clipboard. Using the adapter class presented in this Java Tip, the ability to copy and paste information to and from your JTables and Excel can be added with only one line of code. Note that, since the system clipboard is not accessible to unsigned applets, this functionality will not be available to those Java programs. (850 words)


5. Set the JTable
Author:Tony Sintes
URL:http://www.javaworld.com/javaworld/javaqa/2001-09/03-qa-0928-jtable.html?
Summary: Choose the color of a JTable cell


w___ww__.__java___2___s__.___c___o___m | Contact Us
Copyright 2003 - 08 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.