Frames not showing up quite correctly?

1999-02-02 Thread Dustin Lang


Hi,

Before I submit this to jitterbug, I'd like to make sure I'm not just on
crack.

This used to work before I upgraded (to JDK1.1.7, XFree86 3.3.3.1, and
kernel 2.2.0, from JDK1.1.6, XFree86 3.3.2(?), kernel 2.0.36.  Window
manager = fvwm2).  It also works correctly on win32.  I don't have access
to a Solaris machine to check if it happens there.

What happens, at least for me, is the Frame shows up on screen at the
right size, but the body of it is all gray.  If I drag it to a nearby
location, it is drawn correctly.  Also, if I uncomment the last line, it
is drawn correctly.

I'm not sure, but I believe it should be drawn correctly without the
explicit setLocation?

Thanks (and sorry for wasting your time if I am in fact on crack),
dstn.

---

import java.awt.*;
import java.awt.event.*;

public class FrameTest extends Frame {

public static void main(String[] args) {
new FrameTest("Test", "This is a test");
}

public FrameTest(String title, String text) {
super(title);
add("Center", new Label(text, Label.CENTER));
Button okay = new Button("Okay");
add("South", okay);
setBackground(Color.white);
okay.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e) {

((Frame)((Component)e.getSource()).getParent()).dispose();
System.exit(0);
}
});
pack();
setResizable(false);
show();
// This will make it be drawn correctly.
//setLocation(10,10);
}
}


-
Dustin Lang, [EMAIL PROTECTED]



Re: Frames not showing up quite correctly?

1999-02-02 Thread Aaron Gaudio

It is a bug, and it seems to be related to the setResizable() (if
you comment that out, it appears as normal).


And lo, the chronicles report that Dustin Lang spake thusly unto the masses:
> 
> 
> Hi,
> 
> Before I submit this to jitterbug, I'd like to make sure I'm not just on
> crack.
> 
> This used to work before I upgraded (to JDK1.1.7, XFree86 3.3.3.1, and
> kernel 2.2.0, from JDK1.1.6, XFree86 3.3.2(?), kernel 2.0.36.  Window
> manager = fvwm2).  It also works correctly on win32.  I don't have access
> to a Solaris machine to check if it happens there.
> 
> What happens, at least for me, is the Frame shows up on screen at the
> right size, but the body of it is all gray.  If I drag it to a nearby
> location, it is drawn correctly.  Also, if I uncomment the last line, it
> is drawn correctly.
> 
> I'm not sure, but I believe it should be drawn correctly without the
> explicit setLocation?
> 
> Thanks (and sorry for wasting your time if I am in fact on crack),
> dstn.
> 
> ---
> 
> import java.awt.*;
> import java.awt.event.*;
> 
> public class FrameTest extends Frame {
> 
>   public static void main(String[] args) {
>   new FrameTest("Test", "This is a test");
>   }
> 
>   public FrameTest(String title, String text) {
>   super(title);
>   add("Center", new Label(text, Label.CENTER));
>   Button okay = new Button("Okay");
>   add("South", okay);
>   setBackground(Color.white);
>   okay.addActionListener(new ActionListener(){
>   public void actionPerformed(ActionEvent e) {
> 
> ((Frame)((Component)e.getSource()).getParent()).dispose();
>   System.exit(0);
>   }
>   });
>   pack();
>   setResizable(false);
>   show();
>   // This will make it be drawn correctly.
>   //setLocation(10,10);
>   }
> }
> 
> 
> -
> Dustin Lang, [EMAIL PROTECTED]
> 


-- 

¤¤
| Aaron Gaudio   mailto:[EMAIL PROTECTED] |
|http://www.rit.edu/~adg1653/|
¤¤
|  "The fool finds ignorance all around him. |
|  The wise man finds ignorance within." |
¤¤

Use of any of my email addresses is subject to the terms found at
http://www.rit.edu/~adg1653/email.shtml. By using any of my addresses, you
agree to be bound by the terms therein.



Re: Offering help on 1.2.

1999-02-02 Thread Sean Kellner


> Sean>  We still don't have anything to work with though, or even
> Sean> acknoledgement that someone who is dealing with the situation has seen
> Sean> my request yet.
> 
> We've seen it, it's just no that easy to create a short (or medium sized)
> example that shows the problem.
> 

 I figured that might be the case. I do wish the best of luck to ya!

-- 
Sean Kellner
[EMAIL PROTECTED]



Re: Offering help on 1.2.

1999-02-02 Thread Sean Kellner

"Seth M. Landsman" wrote:
> 
> >  We still don't have anything to work with though, or even
> > acknoledgement that someone who is dealing with the situation has seen
> > my request yet. If this was a truly open source project, we'd have
> > already gotten to the code and fixed it by now :). Instead, we have to
> > wait for someone to give us some code to work with, prefereably without
> > having anything proprietary to Sun so we can all chip in.
> 
> This is something which is covered time and time again on this
> list.

  Well then I'm sorry. I never saw it mentioned. I had seen plenty of
people: A> Asking when will it be done or B> Asking for everything you
have so they can do it. I had not ever seen anyone ask for a snippet of
non-proprietary code so that a large base of programmers could help at
least determine if the bug was in linuxthreads or on the VM itself.

> 
> a. This is not a true open source project.  The JDK source code is
> not free nor open source.  If you want to find an open source JDK,
> checkout www.classpath.org which is far from being finished, but is free
> and open.

 I have always fully realised that and simply made a humorous (to some
of us it seems) comment. Sun has the right to have any license they
want, and I've never thought they were wrong for the one they have
chosen.

> b. The porters of the JDK are under a very strict licensing
> agreement which prevents them from releasing any source at any time or
> even releasing a binary until it passed the a strict set of tests called
> the JCK.

 I didn't ask for this either.

> c. The porters read this list, but, methinks, have stopped
> acknowledging the "can I help, even though I haven't read the FAQ", "When
> will this be read already?" and "You guys suck because you aren't
> releasing it under the GPL" questions.  They are asked and answered far
> too often.
> 

 I have read the FAQ and thought my request differed enough from what is
commonly asked. And I never suggested that they should do anylike like
change the license.

> So the answer is, you can help, but you need to get a
> non-commercial license from Sun.  This is not open source and never will
> be.  Binaries will be released when they are ready and not before.  Asking
> will not speed it up.

 I wasn't asking for just me. I was hoping to get a piece of code that
both demonstrated the problem and was under no license from Sun. In
doing so I:
Thought a huge number of people could take a whack at it.
Thought we could at least nail down where the bug is.
Thought we could fix said bug.
Realized that nailing down the piece of code that exhibits the problem
could be difficult.
Realized that then generating a hunk of code that could be released
that also exhibited this code without stepping on anyone's license would
be even more difficult.
Realized that most of the important people in the project have a filter
on their mail, stating something to the effect of /1.2|Java\s*2/ &&
killkillkill(); :)
Already appreciate the had work that has gone into the project, and am
in no way trying to pressure anyone to hurry up or wonder "One month
from when?"
Didn't expect the Spanish Inquisition.

  In my best Steve Martin impersonation (which isn't really all that
good):
"Well, excuse me."


 Sorry for wasting y'alls time.

> 
> -Seth (not a member of the porting team, just a lurker)
> 
> --
> "It is by will alone I set my mind in motion"

-- 
Sean Kellner
[EMAIL PROTECTED]



Re: little endian & big endian

1999-02-02 Thread Peter Naulls


> > I would like to ask about a question.  I am doing a JAVA program
> > which should deal with system architeucture.  I would like to ask a
> > question how can I know the system is little endian or big endian?
> 
> Don't know if this helps, but I read in the Java Glossary
> (http://mindprod.com/gloss.html):
> 
>"Java stores binary values internally and in files MSB (Most
> Significant Byte) first, i.e. high order part first. This is
> referred to as big-endian byte sex or sometimes network order."

Rubbish.  They're in MSB in classfiles, but internally, the JVM will
whatever is the platform's way round, otherwise it'll have to
convert everytime it does things like addition (and that would of
course be slow).

On a small-endian machine, the values would only be converted to
big-endian when they're written to a file, or sent out over the network.

Peter


-- 
+-+-+
| Peter Naulls - [EMAIL PROTECTED]  | |
| http://free.prohosting.com/~chocky/ | Java and JVM Consultant |
| Java for Risc OS and ARM - [EMAIL PROTECTED] | Technical Author|
| http://free.prohosting.com/~chocky/java/| Program performance analyst |
+-+-+



Help about doc on source of JDK

1999-02-02 Thread Pierre Bizzotto

Hi, 
 We have some problem about the mind of the source code of the JDK 1.1.6.

 we are two students at University of Rome in COMPUTER SCIENCE. We have
the source code of JDK of the SUN. 

 We must generate a JVM for a parallel machine. But we have some difficult
to understand how the THread are handled by the O.S.

We are working on Linux  RedHat 5.1 /Suse 6.0 with JDK 1.1.6.

This documentation is very important for us.

Thankyou 

/* this is a segment of source code where we found difficulties !!
   how can threads change context ?  
*/
if (timerIsSet(&timeout)) {
t = timeout;
timerSub(&t, &time);
sysAssert(timerIsSet(&t));
scheduleAlarm(t);
}
Log(3,"...clockHandler() woke up\n");
mid = CLOCK_MID();
queueWait(mid, &mid->condvar_waitq);

 You can also replay to 

 [EMAIL PROTECTED] 
 [EMAIL PROTECTED]

 Bye thanks



Re: Offering help on 1.2.

1999-02-02 Thread Joel Shellman

I realize this is off-topic and off-list, but I have tried
twice to email Rob Schoening privately and both times the
email bounced. And the fact is I'm rather desparate.

I saw Rob's post regarding Java on the BeOS and it renewed
my hopes. Is there any Java port for the BeOS? I don't care
what version, is there a JVM at all for the BeOS available
and where?

Thank you and of course, please reply privately as this is
not on-topic for the list.
-- 
Joel Shellman
knOcean Interactive Corporation
http://corp.knOcean.com/



Re: Offering help on 1.2.

1999-02-02 Thread Kelly Campbell

Can the current diffs be posted somewhere so people who have executed a
non-commercial source license with Sun can try to help with the port?

I see nothing in the Source license I signed (even though it says version
1.1.x at the top, but they sent me 1.2 sources) to keep the
platform-dependent diffs from being posted before the JCK is passed.

thanks,
Kelly
-- 
Kelly A. Campbell   Applications Programmer/Analyst 
<[EMAIL PROTECTED]>  <[EMAIL PROTECTED]>  Kansas State University
http://www.telecom.ksu.edu/~camk/   Department of Telecommunications
109 East Stadium, Manhattan KS 66506http://www.telecom.ksu.edu/
Voice: (785) 532-7067   Fax: (785) 532-7114



I don't want to know when 1.2 will ship - honest!

1999-02-02 Thread Carlson, Jeffrey F

Kevin,
 
I read your update on the LWN.  I just wanted to say that on behalf of the
Linux/Java folks here at Pfizer, we thank you and the blackdown team for
your efforts and your hard work.  When you complete the JCT, it will be soon
enough for us.
 
Your post sounded like you were getting a lot of annoying "when will it be
done?" messages, and I thought it would be nice to get one that just said
thanks.
 
So, thanks.
 
Best Regards,
Jeff
 

Jeff Carlson
Sr. Research Applications Developer
Pfizer.
[EMAIL PROTECTED]
 
Disclaimer: This message is written by a Pfizer employee.  
No product or sentiment expressed in this message is 
endorsed by Pfizer or any of it's various business units 
in any way. 



How can I do it?

1999-02-02 Thread Juan Carlos

Hi,

How can I read the files of /proc directory with JDK?  The information
of these files is generated with the  cat option.  (EX:  cat
/proc/meminfo).  It information don´t is fixed in these files.

Thanks for your attention.  

J.C.




_
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com



Help!

1999-02-02 Thread Juan Carlos

Hi,

How can I read the files of /proc directory with JDK?  The information
of these files is generated with the  cat option.  (EX:  cat
/proc/meminfo).  It information don´t is fixed in these files.

Thanks for your attention.  

J.C.





_
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com



Re: little endian & big endian

1999-02-02 Thread Robert P. Biuk-Aghai

On Tue, 2 Feb 1999, Peter Naulls wrote:

> > Don't know if this helps, but I read in the Java Glossary
> > (http://mindprod.com/gloss.html):
> > 
> >"Java stores binary values internally and in files MSB (Most
> > Significant Byte) first, i.e. high order part first. This is
> > referred to as big-endian byte sex or sometimes network order."
> 
> Rubbish.  They're in MSB in classfiles, but internally, the JVM will
> whatever is the platform's way round, otherwise it'll have to
> convert everytime it does things like addition (and that would of
> course be slow).
> 
> On a small-endian machine, the values would only be converted to
> big-endian when they're written to a file, or sent out over the network.

Actually, I was wondering whether the Java Language Spec says anything
about what byte order should prevail. I searched for it but couldn't
find anything about endianness or byte order. Then again, I didn't
read the whole darn lot.

I now have two different opinions. Some say Java is big-endian, some
say it depends which machine it's on. Who's right? Proofs, please.

Robert.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Robert P Biuk-Aghai, University of Macau, Faculty of Science and Technology
http://hyperg.sftw.umac.mo/robert/tel: +853-3974365fax: +853-838314
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Microsoft isn't the answer. Microsoft is the question and the answer is no.



BEOS port help on 1.2.

1999-02-02 Thread Uncle George

I do not think that there is a port, but rather an effort. i do not know
whats going on, but I can help in some regart to the port effort.
gat
Joel Shellman wrote:

> ail bounced. And the fact is I'm rather desparate.
>
> I saw Rob's post regarding Java on the BeOS and it renewed
> my hopes. Is there any Java port for the BeOS? I don't care
> what version, is there a JVM at all for the BeOS available
> and where?



Re: I don't want to know when 1.2 will ship - honest!

1999-02-02 Thread mlorton


I, by contrast, DO want to know, I'm just not going to ask.

M.



Re: little endian & big endian

1999-02-02 Thread mlorton

> I now have two different opinions. Some say Java is big-endian, some
> say it depends which machine it's on. Who's right? Proofs, please.

Class files and serialized objects are MSB.  The endianness of the VM
itself is implementation dependent; however, if you could devise a
pure-Java program that could detect the endianness of the VM, you
would have found a bug in the spec.

M.



Re: Home, End and Arrow Keys Do Not Work in JTextField

1999-02-02 Thread Cynthia Jeness

Cynthia Jeness wrote:

> We are running the latest BlackDown JDK1.1.7 glibc version for Intel on
> an IBM 300 PL computer.  The distribution is Redhat 5.2; however, we
> recently upgraded to the 2.2 kernel.  We are also using the XServer
> which supports frame buffers in order to support the S3Trio3D card which
> is standard in this computer.
>
> When we enter data into a standard Swing JTextField, the home, end and
> arrow keys are not functional.  This is a major problem for long entries
> which have scrolled since there is no way to display the beginning of
> the field.  This problem does not occur on either Solaris or OS/2.
>
> Cynthia Jeness

We eventually determined that this was due to the extended key mappings
which are part of the 3.3.3 XServer.  We can turn these off in our own
X-configuration file; however, not everyone may want to do this.  Are there
any plans for changing the JDK to deal with the new key mappings?  How are
others dealing this this?

Cynthia Jeness




Re: How can I do it?

1999-02-02 Thread Chris Abbey

Do a runtime exec of "cat /proc/meminfo" and attach the process's
stdout to an io reader of some sort (it's only a stream afterall)
@see Ljava/lang/Process, Ljava/lang/Runtime for needed methods.
Just remember that by doing this you have:
1. broken platform independence.
2. created a requirement that your linux users have the /proc
 filesystem installed and configured, and have read authority.
-=Chris

At 05:06 PM 2/2/99 -0800, Juan Carlos wrote:
>Hi,
>
>How can I read the files of /proc directory with JDK?  The information
>of these files is generated with the  cat option.  (EX:  cat
>/proc/meminfo).  It information don´t is fixed in these files.
>
>Thanks for your attention.  
>
>J.C.


<*> cabbey at rconnect dot com  http://homepage.rconnect.com/cabbey/ <*>
Get it up, keep it up... LINUX: Viagra for the PC. ;) PGP Info: pgp.html

-BEGIN GEEK CODE BLOCK-
Version: 3.12 http://www.geekcode.com
GCS$/IT/PA$ d(-) s++:+ a-- C+++$ UL UA++$ P++ L++ E- W++ N+ o? K? !P
w---(+)$ O- M-- V-- Y+ PGP+ t--- 5++ X+ R tv b+ DI+++ D G e++ h(+) r@ y?
--END GEEK CODE BLOCK--



Re: BEOS port help on 1.2.

1999-02-02 Thread Joel Shellman

Uncle George wrote:
> 
> I do not think that there is a port, but rather an effort. i do not know
> whats going on, but I can help in some regart to the port effort.
> gat
> Joel Shellman wrote:
> 
> > ail bounced. And the fact is I'm rather desparate.
> >
> > I saw Rob's post regarding Java on the BeOS and it renewed
> > my hopes. Is there any Java port for the BeOS? I don't care
> > what version, is there a JVM at all for the BeOS available
> > and where?

First of all, let's try to take this off this list. I'm
posting again so I can redirect any further correspondence
to a new location.

Thank you for telling me. Look, if there is an effort, let's
get it organized. I'll gladly set up a web site and mailing
list for the effort. If anyone knows if there already is
such a thing, please tell me ([EMAIL PROTECTED]). Otherwise
in two days, if I do not hear that there is already an
organized effort somewhere, I'll put up a site at the
following url to get started:

http://beos.knOcean.com/

Look for it on Thursday (perhaps earlier).

Considering I've done several searches on a couple search
engines and couldn't find anything about it... I don't know
if there is any other website about it.

Also, one more note--Rob, I responded to your private email
(thank you) but it still could not be delivered. What's up
with your email address?

Thanks,

Joel Shellman
knOcean Interactive Corporation
http://corp.knOcean.com/



swing

1999-02-02 Thread Charlie Fulton

is swing available to use with your linux port?

thanks,

-Charlie.

btw, great job on the port!