Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #2K
~3K People Reached
Favorite Forums
Favorite Tags
Member Avatar for chdboy

I'm not able to get the printout. here is the code public class Billing extends Frame implements ActionListener,Printable { JButton printbtn = new JButton("Print"); } public int print(Graphics graphics, PageFormat pageFormat, int pageIndex) throws PrinterException { if (pageIndex > 0) { return NO_SUCH_PAGE; } // User (0,0) is typically outside …

Member Avatar for JamesCherrill
0
302
Member Avatar for Neon Tetras

I want to execute WordPad using the code below. It runs fine on my pc. But failed to run on other pcs. String program = "C:\\Program Files\\Windows NT\\Accessories\\wordpad"; String file = "srcFiles\\Resources\\readme.rtf"; //This is the path to the file i want to open with wordpad. Runtime load = Runtime.getRuntime();; try{ …

Member Avatar for djslavens
0
190
Member Avatar for djslavens

Hi there! I am new to the Daniwewb forum, and I was wondering if there was a forum or section specifically dedicated to promotions of books, ebooks, and articles on Java Programming. If you could please send me a link to get me pointed in the right direction or just …

Member Avatar for JamesCherrill
0
65
Member Avatar for eldiablo1121

Hello, I have to write a program where I need to take an input from the user, a phrase with words seperated by spaces, and then print the phrase and show how many times a word is used in the phrase. I'm a beginner, I would like to know how …

Member Avatar for eldiablo1121
0
2K
Member Avatar for cool_zephyr

hi everyone. i've used the following way to store the uploaded files into D: drive of my windows machine from Tomcat server and it works pretty goood. private final String directoryPath="D:\\uploadedFiles\\"; File f=new File("D:\\uploadedFiles\\"+fileName); InputStream in=file.getInputStream(); OutputStream out=new FileOutputStream(directoryPath+fileName); byte[] buff=new byte[4096]; int count=0; while((count=in.read(buff))!=-1) { out.write(buff, 0, count); } …

Member Avatar for JamesCherrill
0
299