Skip site navigation (1)Skip section navigation (2)
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 5ustar  meshkomeshkojtest/Cont1.java100644   1751   1751        1450  7006625501  13120 0ustar  meshkomeshkoimport 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.java100644   1751   1751         446  7006624457  12651 0ustar  meshkomeshkoimport 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.class100644   1751   1751        1154  7006625505  13045 0ustar  meshkomeshkoÊþº¾-*()!"#




$%&()V(II)V(Ljava/awt/LayoutManager;)V)(Ljava/lang/String;Ljava/awt/Container;)V<init>AppApp.javaCode
ConstantValueCont1
ExceptionsLineNumberTableLocalVariables
SourceFileinitjava/applet/Appletjava/awt/Componentjava/awt/Container	setLayoutsetSizeshowwndwnd 1wnd 2! G*¶
*¼,¶»Y*·	L+¶±	'0»Y*·	L+¶±*·±jtest/Cont1.class100644   1751   1751        2715  7006625506  13316 0ustar  meshkomeshkoÊþº¾-cMYADQRSTUVWX
!
	"
"
#

#
$
%
&
'
(	)	*
+
,
-
.
/
0
1
2@4@6@>L8L:M4N3O<PGZI[9\5]=^7_4_;a4b4()Ljava/awt/Dimension;()V(C)V(I)V(II)V*(Ljava/awt/Component;)Ljava/awt/Component;(Ljava/awt/Component;)V+(Ljava/awt/Component;I)Ljava/awt/Component;(Ljava/awt/Dimension;)V(Ljava/awt/Event;)Z(Ljava/awt/LayoutManager;)V(Ljava/lang/String;)V)(Ljava/lang/String;Ljava/awt/Container;)V<init>AppCode
ConstantValueCont1
Cont1.java
ExceptionsILineNumberTableLjava/awt/Container;LocalVariables
SourceFileaddclosegetPreferredSizehandleEventidjava/awt/Buttonjava/awt/Componentjava/awt/Containerjava/awt/Eventjava/awt/FlowLayoutjava/awt/Labeljava/awt/Paneljava/awt/TextFieldokownerremovesetEchoChar	setLayoutsetLocationsetSizeshowvalidatewnd!ZI@?B­e*·
*,µ*»	Y·¶N6§»Y·N-*¶*-¶W„¡ÿå*»Y·¶W*»Y·¶W*»
Y+·¶W±H6
		
&,2
;IWd`4BA*´*¶W*¶*¶*¶±H
M4B%	*´*¶±H
" O<BB+´é *¶*´À¶ *+·¬H'
)*,_4B+*¶L*+¶±H13
/KEjtest/800x600.html100755   1751   1751         477  7006621246  13101 0ustar  meshkomeshko<HTML>
<HEAD>
   <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
   <META NAME="GENERATOR" CONTENT="Mozilla/4.02 [en] (X11; I; IRIX 5.3 IP22) [Netscape]">
   <TITLE>test</TITLE>
</HEAD>
<BODY>

<APPLET NAME = "test"
    code="App.class"
    width=780
    height=400>
</APPLET>

</BODY>
</HTML>
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.04.9910301342460.7795-101000>