No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
software engineer
- Interests
- reading, cooking
- PC Specs
- 500 mb RAM, 2.5 ghz p iv, 20 gb hdd
36 Posted Topics
Re: hi, I had once made a full fledge editor for java in java. All i did was to include the classpath while issuing the javac command. I used Process process=Runtime.getRuntime().exec("javac -cp <java file>"); then I used err stream and output stream to read the output. The same i used for … | |
Hi I am trying to use axis with Tomcat. I am trying to execute AdminClient of axis. I am getting the following error. I get connection refused exception, i donot understand connection to where is refused :sad: Can anybody tell me where I am going wrong. Thanks in advance Srinivas … | |
Re: hi, i believe you can try this program... [HTML]import java.math.*; class TestBigDecimal { public static void main(String args[]) { BigDecimal bd=new BigDecimal(args[0]); bd=bd.setScale(2,BigDecimal.ROUND_HALF_EVEN); System.out.println(bd); } }[/HTML] Srinivas | |
Re: hi, you can try using JMF, I had used it for audio/ video play back but it has necessary API for voice as well as video chat(I think so) You can try downloading JMF from sun's site. Hope it help you. Srinivas | |
Re: hi, does your class has main method with the following signature? [HTML] public static void main(String args[]) { } [/HTML] regards srinivas | |
Re: hi, For drag and drop you can try java.awt.datatransfer API. For scaling the images try java.awt.Image method getScaledInstance(int width, int height, int hints) and other related api. Hope this helps Regards Srinivas | |
A program that can send mails. This requires that you have activation.jar and mail.jar in you classpath. | |
hi all, I am planning to take up sun certified java developer exam(SCJD). Can any one help me with the topic that you have got as the project. This would help me as I am planning to take scjd up only after 3 months. I want to prepare myself for … | |
Hi All, I am an member of our java forum, but am a novice as far as c++ concerned. I need to program small application for symbian os. Programs like reading an addressbook on a device. Can you suggest where to begin? The prefered IDE and a small program would … | |
Hi All, I am trying to develop an application which access the Phone Card on the device. There is an Api for that called Java Phone Api. I got a sample program as well which uses Java Phone API, when I try to compile the program on the J2ME toolkit … | |
Re: hi Erik, I think what you are doing is right by creating a subclass. Did you try with jSplitPaneInstance.setDividerSize(0) ? Regards Srinivas | |
Re: hi You can probably have a look at the JMF API, I believe the JMF api is split in to three sections : 1. Audio Video Play back, 2. Audio video Recording 3. Chatting with Audio and Video. You can probably give it a try regards srinivas | |
Re: hi if you can attach all the related files i can compile and see what happens. Regards Srinivas | |
Re: hi can you attach necessary source code so that any body can run on their system and reply you back with their suggessions? Regards Srinivas | |
hi all I am planning to buy a pc. I am thinking whether to go for AMD 64 with linux. I will be using java 1.5, jboss and related softwares. I want to know whether AMD 64 will support this. I may also install windows as dual boot. Which version … | |
Re: hi, I believe you need to have an array of random numbers which are unique. Hope this code helps. The logic that i have used is i prepopulate an array of sequential numbers and swap the indices randomly as many times as the size of the array. If you donot … | |
Re: hi instead of : [QUOTE] public int intint(int var1, int var2) { return (var1 + var2); } [/QUOTE] try this: [HTML] public int intint(Integer var1, Integer var2) throws IllegalArgumentException { if(var1==null||var2==null) { throw new IllegalArgumentException("Null Values not allowed as parameter"); } int a=var1.intValue(); int b=var2.intValue(); return (a+b); } [/HTML] Now … | |
Re: hi jwenting, I have attached a Textfield which takes number of columns(maximum number of characters that the textfield can take) as parameter. If you use the usual textfields with keylistener, you can set illegal characters programattically. This textfield(one attached) does not allow illegal characters either by entry or progammatically. You … | |
Re: hi server crash, You have done a great work. I donot know if I ever had the patience to do such a wonderful program for the sake of hobby. I have a couple of suggessions as far as the components are used. 1. I believe you are using key listener … | |
Re: hi kennedy I prepared using: [B]The Complete Java 2 Certification Study Guide by Simon Roberts, Philip Heller, Michael Ernest, Roberts et al [/B] This book is also popular [B]Java 2 Programmer Exam Cram (310-035) by William Brogden, et al [/B] All the best Srinivas SCJP | |
Re: hi you are reading the line end characters as well, they are \r and \n in windows. That is the reason why you are getting 3 lines of : "Sorry, you're incorrect!" than the expected one line. As server crash said you can try with buffered reader which will remove … | |
Re: hi it can even be [HTML] static public void main(String args[]) { //your code.......... } [/HTML] <access modifiers><access specifiers><return type><method name> is the correct convention.Although you can interchange the first two as I have done. Following are java access specifiers. There are 10 of them 1. public 2. private 3. … | |
Re: hi gokul you can try jbuilder. it is good. you can also try visual age for java both are good ones. Free ones like net beans and eclipse with plugin are also worth trying regards srinivas | |
Re: hi Richard yesterday you had posted regarding connecting to a pop3 server and viewing mails. you had problem in getting the attachments. I am really interested in the topic, when i tried to run the same program the program says waiting..... I tried to send mails to my maild id … | |
Re: hi compiler I have changed your code at a couple of places. try running your code and tell me is this what was in your mind? regards Srinivas | |
Re: hi why donot you try with JWindow instead? If you use javax.swing.JWindow then u will not have minimize,maximize or close options. regards srinivas | |
Re: hi v2_vehooi check out the following code, is that your requirement? [HTML] class RandomGen { public static void main(String args[]) { int i=(int)(100+((int)Math.round(100*Math.random()))); System.out.println(i); } } [/HTML] regards srinivas | |
Re: Hi servercrash, I believe your problem is related to all components getting added to the center. Buy default if you are using gridbaglayout as a layout manager to a container, the components in the container will get added to the center. You will have to specify the constraints while adding. … | |
Re: hi nccliang, Probably this helps : [HTML] import java.util.*; import java.text.*; class TestDate { public static void main(String args[]) { Date date=new Date(); SimpleDateFormat sdf=new SimpleDateFormat("MM/dd/yy"); String strDate=sdaf.format(date); System.out.println(strDate); } } [/HTML] regards Srinivas | |
hi all, I am trying to connect to Oracle database from a black berry device. I am not sure how to go about starting this assignment. I am open to suggessions. Thanks Srinivas | |
Re: hi bigriggers, as server crash had mentioned u have only one instance. I have attached a running version. Hope this is what you are looking for: I have made this into a awt standalone application import java.awt.*; import java.awt.event.*; public class u extends Frame { Canvas can; Scrollbar s1,s2,s3; Color … | |
Re: hi yarlini your problem lies on the following lines: DrawFrame frame = new DrawFrame("Drawing"); and public class Drawing extends DrawPanel bcos these clases are neither in swing nor classes that you created. So the compiler says it is not able to recognize the classes I think this is what you … | |
Re: [HTML] hi c++ you can try this: try { Process process=Runtime.getRuntime().exec("<your exe>"); InputStream inputStream = process.getInputStream(); InputStream errStream = process.getErrorStream(); ConsoleErrReader err = new ConsoleErrReader(errStream); ConsoleInputReader input = new ConsoleInputReader(inputStream); Thread th = new Thread(err); Thread th1 = new Thread(input); th.start(); th1.start(); } catch(Exception e) { e.printStackTrace(); } class ConsoleInputReader … | |
Re: u can try creating an executable batch file. to create an executable batch file u can follow the following link [url]http://java.sun.com/docs/books/tutorial/jar/manifest/appman.html[/url] if you are using windows u can try adding an entry in the registry : HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run | |
Re: I haven't faced this problem, but there can be one more problem related. If you add two or more same string strings (str1.equals(str2)). Then the getSelectedItem will return the index of the first item which matches the (str1.equals(str2)) criteria. | |
Re: [QUOTE=saiteja]help me in this issue[/QUOTE] hi saiteja, I am not clear. I am also using mysql as database in my jsp pages. What kind of problem are you facing with date and timestamp? regard Srinivas |
The End.