DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2

Thread: JTable

  1. #1
    Join Date
    Feb 2006
    Posts
    14

    JTable

    Code:
    JTable table = new JTable(new DefaultTableModel(tableData, columnNames))
    Hello,

    I am using this kind of JTable and would like to find out how to make certain columns into £ currency.

    I also want to find out how to centre certain columns so that all the text in each field is centre justified.

    Thanks

  2. #2
    Join Date
    Mar 2004
    Posts
    635
    You'll probably need your own table column renderer.
    This should help you get started with tables
    http://java.sun.com/docs/books/tutor...nts/table.html

Similar Threads

  1. JTable Data not appearing
    By Bennettd02 in forum Java
    Replies: 0
    Last Post: 12-30-2005, 04:56 PM
  2. JTable Help
    By Hasnain in forum Java
    Replies: 1
    Last Post: 08-20-2005, 09:57 AM
  3. JTable
    By Aramis in forum Java
    Replies: 5
    Last Post: 04-27-2005, 04:43 AM
  4. JTable Cell Editor
    By Jan Vettenburg in forum Java
    Replies: 1
    Last Post: 11-30-2001, 10:57 AM
  5. JTable: colored rows, how to?
    By Fabio Luis De Paoli in forum Java
    Replies: 1
    Last Post: 12-16-2000, 10:00 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links