🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #17791

Bad refresh on SetText method...

#17791
From: jmcau
Date: Fri, 02 Oct 1998 00:00
43 lines
1762 bytes
Hello,

I wrote an applet wich can runs also like an application and, depending on
this context, it doesn't work the same whith the method SetText of my
java.awtTextField object. In an applet context, the refresh seems not
working when I change the text of my object before executing a "POST" url
command, see exemple below :

   ...
   // Text refreshing doesn't work !!!
   textFieldAction.setText("The request is submitted to the calculation
center...");

   // Next working
   setCursor(new Cursor(Cursor.WAIT_CURSOR));
   buttonCalculating.setEnabled(false);

   // POST request
   try {
      URL url = new URL(this.applet.urlBase,scriptPathName);
      String request = URLEncoder.encode("Action=CALC")+"&";
      request += URLEncoder.encode("Language=ENGLISH")+"&";
      request += URLEncoder.encode("What=ESTIMATE")+"&";
      ...
      //Connexion
      URLConnection uc = url.openConnection();
      uc.setDoOutput(true);
      uc.setDoInput(true);
      uc.setAllowUserInteraction(false);
      DataOutputStream dos = new DataOutputStream(uc.getOutputStream());

      //Do POST
      dos.writeBytes(request);
      dos.close();
      ...


What can I do to see my text appears during the execution of POST request
which can take severals minutes ?

Thank's for response.

Jean-Michel Cau, jmcau@ordiconseil.com
Technical Details
Message-ID: <01bdedde$45603ee0$1c96a8c0@NTIJMC1.ordiconseil.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,b887a63bf2cb35d0,start
X-Google-Attributes: gidf74b3,public
From: "jmcau" <jmcau@ordiconseil.com>
Subject: Bad refresh on SetText method...
Date: 1998/10/02
Message-ID: <01bdedde$45603ee0$1c96a8c0@NTIJMC1.ordiconseil.com>
X-Deja-AN: 396978141
Organization: ordiconseil
Newsgroups: borland.public.jbuilder.java.language