Re: Help, why wrong ?!

2000-10-14 Thread Ali

Hi
Try this:

import java.io.*;
public class ReadKeyB {

public static void main (String args[]) {

try{

 BufferedReader stdin =new BufferedReader(new InputStreamReader(System.in));
 System.out.print("Enter a digit:");
 int a = Integer.parseInt(stdin.readLine());
 System.out.println(++a);

}catch(IOException e){System.out.println(e.getMessage());}
}
}


regards
ali farid
- Original Message -
From: Friendship <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 13, 2000 11:26 PM
Subject: Help, why wrong ?!


> Hi, guru,
>
> I am very new to java.
> I want read a int from keyboard and plus one, then
> display it.
> But why it doesn't work?
> Help me please!!
>
> Thanks & Have nice weekend!!
>
>
>
> import java.io.*;
> public class ReadKeyB {
>
> public static void main (String args[]) {
>
>
> DataInputStream in = new DataInputStream(System.in);
> int s ;
>
> try {
>   s = in.readInt();
>   int myint = intValueOf(s);
>   myint++;
>   System.out.println(myint);
>  }
>
>
> catch (Exception e) {
>System.out.println("Error: " + e.toString());
>  }
>
>
> }
>
> }
>
> __
> Do You Yahoo!?
> Get Yahoo! Mail - Free email you can access from anywhere!
> http://mail.yahoo.com/
>
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


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




Linux Java 2 text rendering problems

2000-10-14 Thread Fred Gray

Hi, all,

First of all, many thanks are owed to the Blackdown group, most recently for 
their JDK 1.3.0 Debian packages.  

My only complaint about Java 2 on Linux these days is the poor text rendering.
Please have a look at the example at 

http://www.npl.uiuc.edu/~fegray/java-render/

It shows the same text in a JEditorPane with an HTMLEditorKit in a JDK 1.1
environment with Swing 1.1.1 FCS and in a JDK 1.3.0 environment.  The loss
of quality is rather striking.  It has looked this way in every Java 2 VM 
for Linux that I have tried.  However, it looks fine in JDK 1.3 for Windows,
so this is not a platform-independent issue.

Is there a good workaround for this problem?  Is this a bug that is being 
worked on?

Thanks very much for your help,

-- Fred Gray


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




Plotting Pixels

2000-10-14 Thread Nicolas Raitman

Hi to all. Please I just have one question. Which is the function to draw a
pixel on the screen (applets) and how does it works?

Thanks a lot

Nicolas


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