DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Threaded View

  1. #1
    Join Date
    Jul 2010
    Posts
    1

    Trouble with refreshing and deleting data in JPanels

    I'm learning how to use Java Swing and tried my hand at creating a calendar or day planner. Essentialy i have a vector that store Detail objects, each object containing an hour, minute and text field, with the ability to activate it. I have a JPanel that is used to add new objects to the vector, but how do i refresh the JPanel or JFrame to show the new entry (i know the vector will not store the new entry when i close and reopen the app, i already have plans to serialize the vector). The other problem i have is that each entry has a delete button associated to it, but i can't get that to delete the entry, even though i've made the index a global variable. Eventually i will need to be able to do the same with the checkbox, where i can turn it off so the entry is invisible. The code i have is below:
    Attached Files

Similar Threads

  1. refreshing data in a Datagrid with an ADO control
    By Fabio Quadrana in forum VB Classic
    Replies: 2
    Last Post: 01-20-2001, 02:03 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