Choice component screws up focus

2000-01-30 Thread blake

There seems to be a rather annoying bug in the blackdown JVM for linux
regarding java.awt.Choice components.  If you run the code below (a frame
with 2 components, a textarea and a Choice), type something in the text box
(just to prove it works to start with), make a selection from the Choice,
now the text will still work. Now make one more selection from the Choice.
Now nothing gets focus. You can't tab, or select with the mouse.  However
Buttons, Menus, Lists, etc still work with mouse events.  But no keyboard
events work becuase nothing has focus to receive them.

I have now only found two mentions of this problem in several days of
searching.  One is a note on the blackdown jitterBug reporting system.  The
other is a message posted to this list July 99 (That's where the example
code below came from, thanks Nelson Minar and Tucker Sylvestro).  Neither
have a response.  I've confirmed it in Blackdown JDK 1.1.7_v3, 1.2pre2,
1.1.8_v1. And in the exact same situation Netscape for Linux works fine.
I'm downloading the IBM jdk right now and if it works I just might abandon
blackdown if I can't find a workaround.

Thanks for your time.


 ~blake

>>
>>
>>/** Demonstration of a bug in focus with the AWT on Linux and Java.
>> **
>> ** Creates a Frame with a Choice and a TextArea. Every other
>>time the
>> ** Choice box is selected, the text area loses the ability to take
>> ** focus. To demonstrate this, type some text into the text area,
>> ** then select something from the Choice. Type into the text area
>> ** again, then select something from the Choice again. The text area
>> ** is now locked, and cannot be typed into.
>> **
>> ** Removing focus and restoring it to the Java app allows the text
>> ** area to be used again, but it re-locks every second time the
>> ** Choice is selected.
>> **
>> ** Bug verified with WindowMaker and fvwm2,
>> ** Blackdown JDK 1.1.7_v3 and 1.2_pre2
>> **
>> ** Nelson Minar <[EMAIL PROTECTED]>
>> ** and Tucker Sylvestro <[EMAIL PROTECTED]>
>> ** Mon Jul 19 18:51:14 EDT 1999
>> **/
>>
>>import java.awt.*;
>>
>>public class FocusBug extends Frame {
>>Choice c = null;
>>TextArea t = null;
>>
>>public FocusBug() {
>>c = new Choice();
>>c.addItem("Item 1");
>>c.addItem("Item 2");
>>add(c);
>>
>>t = new TextArea();
>>t.setEditable(true);
>>add(t);
>>
>>pack();
>>setVisible(true);
>>}
>>
>>public static void main(String args[]) {
>>Test f = new Test();
>>f.setLayout(new FlowLayout());
>>}
>>}
>>
>>
>>  [EMAIL PROTECTED]
>> .   .  . ..   .  . . http://www.media.mit.edu/~nelson/
>>
>> - --M6etIGscyw--
>>
>



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: SunJCE, JDK-1.2.2RC4 -- problems finding it

2000-01-30 Thread Felix Tang

Robert,

I'm using RH6.0, suns jdk1.2.2 and jce 1.2. It works fine. You'll probably
need to follow the install instructions from suns page:

http://www.java.sun.com/products/jce/jce12_install.html

Cryptography is fun,

Felix

p.s. You wouldn't happen to know what happened to versign's class 2 dig
id? I can't find anymention of it on their web-site and I'm not going to
shell out a couple hundred bucks for one.

On Sat, 29 Jan 2000, Robert J. Hansen wrote:

> Howdy, all.  Word from On High at work says that we're moving to Java
> for our work, which is causing this old C++ programmer a little bit of
> consternation.  But hey, spraining your brain is good exercise.  :)
> 
> The particular problem I'm facing is trying to get Sun's JCE to play
> nice with the Linux JDK-1.2.2RC4.  Right now, the JDK is installed in
> /usr/local; I untarred the JCE in /home/rjhansen.  It generated a jce1.2
> subdirectory, and down another level from that I found jce1_2-do.jar.
> 
> I set a CLASSPATH environment variable to point at
> /home/rjhansen/jce1.2/lib, but when I try and compile code using the
> sun.misc.* and javax.crypto.* packages, it tells me it can't find them.
> 
> Now, I'm doing something wrong here, obviously, but I don't for the life
> of me know what it is I'm doing wrong.  I couldn't find anything on the
> Linux Documentation Project about this problem, the newsgroups didn't
> turn up any help, and a quick browsing of the archives of this list
> didn't turn up anything, either.
> 
> So please, if you're going to flame about "RTFFAQ", keep in mind I've
> already tried other recourses.  :)
> 
> -- 
> Robert J. Hansen 
> Senior Security Specialist, Exemplary Technologies
> [EMAIL PROTECTED] (work), [EMAIL PROTECTED] (home)
> OpenPGP Public Key available on request
> 
> 
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 

--
Felix Tang  
[EMAIL PROTECTED]The Way of da' Electron
U of T, Engineering Science 9T9  
PEY . Scientific-Atlanta . Embedded Systems
--


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: information to get started

2000-01-30 Thread Joe T.

Thank you for all the replies, you guys have been a
great help!  :)


=
Joe Topjian
[EMAIL PROTECTED]  
http://auximini.cjb.net

Even a stopped clock gives the right time twice a day
__
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



heap size

2000-01-30 Thread yangyuex

Hi,

How to restrict the initial/Max heap size when the Java VM is started?

Thanks very much!

yang


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]