Date: Sat, 30 Oct 1999 13:45:37 -0400 (EDT) From: Mikhail Kruk <meshko@cs.brandeis.edu> To: Nate Williams <nate@mt.sri.com> Cc: freebsd-java@FreeBSD.ORG Subject: Re: your mail Message-ID: <Pine.LNX.4.04.9910301342460.7795-101000@daedalus.cs.brandeis.edu> In-Reply-To: <199910301524.JAA08986@mt.sri.com>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
> If it also happens on Solaris, then you'll need to submit a bug report
> to Sun outlining the bug, and providing a test case so they can
> reproduce it.
unfortunatelty I do not have access no anything except Windows, Linux and
FreeBSD. As usual Windows port seems to be much more stable...
> If you do produce a test case, we can also give it a shot....
thank you. Attached is the tar file of a small example. While working on
it i had difficulties to reproduce the error, so after ah hour of playing
with my real application code I found out that it happens... only if I
call setEchoChar on the textfield.
Hope that will help you (or sun?) find the problem.
-m
[-- Attachment #2 --]
jtest/ 40755 1751 1751 0 7006627214 11177 5 ustar meshko meshko jtest/Cont1.java 100644 1751 1751 1450 7006625501 13120 0 ustar meshko meshko import java.awt.*;
public class Cont1 extends Panel
{
Container owner;
public Cont1(String l, Container owner)
{
this.owner = owner;
setLayout(new FlowLayout(FlowLayout.CENTER));
TextField t = null;
for(int i = 0; i < 5; i++)
{
t = new TextField(5);
t.setEchoChar('*');
add(t);
}
add(new Button("close"));
add(new Button("ok"));
add(new Label(l));
}
public void show()
{
owner.add(this,0);
setSize();
setLocation(0,0);
validate();
}
public void close()
{
owner.remove(this);
}
public boolean handleEvent(Event e)
{
if(e.id == Event.ACTION_EVENT)
{
close();
((App)owner).wnd();
}
return super.handleEvent(e);
}
public void setSize()
{
Dimension ps = getPreferredSize();
setSize(ps);
}
}
jtest/App.java 100644 1751 1751 446 7006624457 12651 0 ustar meshko meshko import java.applet.*;
import java.awt.*;
public class App extends Applet
{
public void init()
{
setLayout(null);
setSize(700, 300);
Cont1 c1 = new Cont1("wnd 1", this);
c1.show();
}
public void wnd()
{
Cont1 c2 = new Cont1("wnd 2", this);
c2.show();
}
}
jtest/App.class 100644 1751 1751 1154 7006625505 13045 0 ustar meshko meshko Êþº¾ - * ( ) ! " #
$ % &