Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Hidden dialog which doesn't want to appear again

0 views
Skip to first unread message

Pierric Descamps

unread,
May 31, 2001, 10:27:13 AM5/31/01
to
Hi everyone!

I'm creating a small chatting-program in Java (yes I know hundreds of
programs of this kind already exist ;) ), and I've got a problem with my
dialogs.

When I click on the "close" button, they are not destructed, but hidden.
Great, that's exactly what I want, because later I want them to
eventually appear again, and unchanged.

But when I tell them to come back, the following happens. The first time, I see
the dialog "flashing" for half a second, and disappear again. Then, nothing
happens anymore.

So what do I have to do to get my dialogs back ?

Thanks in advance,
Pierric Descamps.

Pierric Descamps

unread,
May 31, 2001, 5:58:56 PM5/31/01
to
> When I click on the "close" button, they are not destructed, but hidden.
> Great, that's exactly what I want, because later I want them to
> eventually appear again, and unchanged.
>
> But when I tell them to come back, the following happens. The first
> time, I see the dialog "flashing" for half a second, and disappear
> again. Then, nothing happens anymore.
>

Hi again !
I wanted to add the following:
This bug only happens with Linux ! Windows users of my program have no
problem ! On the same principle, I can't write any " ? " or " ' ",
whereas they can. Also, no "cut-and-paste" !
Do you know why there are so many bugs? Are they being fixed ?

Pierric.

Martin Mouritzen

unread,
Jun 1, 2001, 4:09:13 AM6/1/01
to
After I finished the 3 Pan Galactic Gargle Blasters, "Pierric
Descamps" <pie...@descamps.as> just offered me, he muttered some
weird stuff, and I had to correct this gibberish:

>Also, no "cut-and-paste" !

That's because Applets haven't got access to the clipboard
(unfortunately for me too) :/
--
Venlig hilsen / Best regards
Martin Mouritzen - mar...@eisenstein.dk
Eisenstein - http://www.eisenstein.dk

Babu Kalakrishnan

unread,
Jun 5, 2001, 4:47:25 AM6/5/01
to


That is a bug in Sun's (And Blackdown's IIRC) JDK for Linux. Occurs only
with some Window managers - not with others. I think they work OK under
KDE. The window actually ends up getting minimized. Sun says this should
be fixed in the next version (I don't know if the current Merlin beta
release fixes this)

Using dispose() instead of setVisible(false)/hide() is the only
workaround.

BK

Pierric Descamps

unread,
Jun 5, 2001, 11:49:24 AM6/5/01
to
> That is a bug in Sun's (And Blackdown's IIRC) JDK for Linux. Occurs only
> with some Window managers - not with others.
Appearently it occurs with Enlightenment :(
Let's hope they'll fix it !

> Using dispose() instead of setVisible(false)/hide() is the only
> workaround.

Actually I use show() to bring the window back, and I leave the default
behaviour for the close button. I'm not sure, but I think it's a
"dispose" behaviour, isn't it? If not, can you explain me how it goes?
The doc is not so clear for me on that point.

Thanks,
Pierric.

Babu Kalakrishnan

unread,
Jun 6, 2001, 12:24:21 AM6/6/01
to
On Tue, 05 Jun 2001 17:49:24 +0200, Pierric Descamps <pie...@descamps.as> wrote:
>> That is a bug in Sun's (And Blackdown's IIRC) JDK for Linux. Occurs only
>> with some Window managers - not with others.
>Appearently it occurs with Enlightenment :(
>Let's hope they'll fix it !

I've seen it with e, window maker and IceWM ifmy memory serves me right.
Sun's stand on this is that the JDK is tested only under KDE - so other
window managers are not supported.

In one of the bug reports at Sun, there was some talk of some AWT code
being re-written to support more window managers for the Merlin final
release. So hopefully we might see some fixes at least in the final
releases of 1.4


>> Using dispose() instead of setVisible(false)/hide() is the only
>> workaround.
>Actually I use show() to bring the window back, and I leave the default
>behaviour for the close button. I'm not sure, but I think it's a
>"dispose" behaviour, isn't it? If not, can you explain me how it goes?
>The doc is not so clear for me on that point.

The default behaviour for the Close button is to just hide the window.
So you'll need to trap the WindowClosing event and put in a dispose()
call there - (And also in any other code that hides the window). Once
you do this, the show() call will work right.

BK

0 new messages