Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #1075

Problem with swing

From "ismael" <ismael@THRWHITE.remove-dii-this>
Subject Problem with swing
Message-ID <es67h7$pes172@cesio.mundo-r.com> (permalink)
Newsgroups comp.lang.java.gui
Date 2011-04-27 15:31 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
Hi

I have a problem with jFrames in swing:

I have a client/server application with the GUI in Swing. One of the
operations of the application needs to get a lot of information from the
server and its spend some seconds.
I want to show a jFrame with a message like "wait a moment please" while the
client is waiting. I create the jFrame with a jLabel and call a method to
show it before make the call to the server method. The problem is that the
GUI shows a jFrame blank, without the label. When the server method call
finished the jFrame paint the label but it is when all process finished.

The jFrame is created by constructor and the initComponents method and its
showed by this simple method:

public void show() {
    pack();
    setVisible(true);
}

+What is the problem? +How i can resolve it?

Thanks all

Best regards

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | NextNext in thread | Find similar


Thread

Problem with swing "ismael" <ismael@THRWHITE.remove-dii-this> - 2011-04-27 15:31 +0000
  Re: Problem with swing "Dan Andrews" <dan.andrews@THRWHITE.remove-dii-this> - 2011-04-27 15:31 +0000

csiph-web