DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2003
    Posts
    1

    A question about an input dialog

    Hello. I would like to ask a question regarding java input dialogs. What i want to do is when the dialog box closes and then opens again, the last input in the dialog box to appear in the text field, like it happens sometimes with password fields. I've been trying to find a code example in the web but no luck. Can anyone offer advice? Thank you for reading this.

  2. #2
    Join Date
    Jan 2004
    Posts
    8
    When dialog box is closed store contents of it into a variable.


    Then use

    insert(String str, int pos)

    method of the java.awt.TextArea class
    when you reopen the dialogBox

    Ash

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