DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2006
    Posts
    5

    refreshing within an applet

    Hi,

    Right now, I have my applet container set up using a GridLayout(2,1), where
    i've 'added' two JScrollPanes (one of a JTable, and the other of a JTextArea). The JTable is displaying the results of a query, and I was wondering if there were a way to refresh the JTable without having to refresh the text area. I'm going to eventually have the text area (and buttons) interact with that table, so anything I change must still allow me to do that eventually.

    Any help would be appreciated. Thanks!

    Vinh

  2. #2
    Join Date
    Dec 2005
    Location
    New Jersey
    Posts
    290
    You mean like the updateUI method?

  3. #3
    Join Date
    Jan 2006
    Location
    Ireland
    Posts
    62
    If you are using a table model, you need to 'fire' the changes to the model and the table will update automatically

    Kind regards,
    Noel
    Efficiency is intelligent laziness

  4. #4
    Join Date
    Feb 2006
    Posts
    5
    I'm assuming the JTable constructor (where I pass it a dataSet[][] and a columnSet[]) has a default table model of some kind... so would this be able to use those 'fire' methods?

    I thought the various 'fire' methods just acknowledged that a value in the table has been changed... by highlighting or something. But what if I added a new row? I'd imagine that unless it polls the sql query over and over, it doesn't really refresh the table...

    ... am i way off base here?

Similar Threads

  1. JavaMail applet problem
    By Tataroz T. in forum Java
    Replies: 1
    Last Post: 10-20-2005, 06:19 AM
  2. Bouncing Ball Applet
    By nescafe in forum Java
    Replies: 1
    Last Post: 10-07-2005, 08:51 AM
  3. Replies: 3
    Last Post: 08-23-2001, 11:01 AM
  4. applet and thread problems
    By aneesha in forum Java
    Replies: 0
    Last Post: 05-06-2000, 10:38 PM
  5. Replies: 0
    Last Post: 03-28-2000, 01:52 AM

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