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.

~14.7K People Reached
About Me

software engineer

Interests
reading, cooking
PC Specs
500 mb RAM, 2.5 ghz p iv, 20 gb hdd

36 Posted Topics

Member Avatar for Ghost

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 …

Member Avatar for stultuske
0
866
Member Avatar for cheenu78

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 …

Member Avatar for divamandya
0
1K
Member Avatar for perlsu

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

Member Avatar for mubin_89
1
4K
Member Avatar for bondito

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

Member Avatar for Nick Evan
0
213
Member Avatar for shingo99

hi, does your class has main method with the following signature? [HTML] public static void main(String args[]) { } [/HTML] regards srinivas

Member Avatar for Cort3z
0
514
Member Avatar for Ghost

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

Member Avatar for manojnbn
0
2K
Member Avatar for cheenu78

A program that can send mails. This requires that you have activation.jar and mail.jar in you classpath.

Member Avatar for balagangadharm
0
174
Member Avatar for cheenu78

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 …

Member Avatar for jasimp
0
251
Member Avatar for cheenu78

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 …

0
55
Member Avatar for cheenu78

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 …

Member Avatar for Phaelax
0
115
Member Avatar for nordmann

hi Erik, I think what you are doing is right by creating a subclass. Did you try with jSplitPaneInstance.setDividerSize(0) ? Regards Srinivas

Member Avatar for nordmann
0
154
Member Avatar for yupiii

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

Member Avatar for cheenu78
0
168
Member Avatar for trashed

hi if you can attach all the related files i can compile and see what happens. Regards Srinivas

Member Avatar for cheenu78
0
176
Member Avatar for MonkeyCode

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

Member Avatar for MonkeyCode
0
322
Member Avatar for cheenu78

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 …

Member Avatar for Coconut Monkey
0
47
Member Avatar for JavaFish

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 …

Member Avatar for hjangel
0
443
Member Avatar for Rete

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 …

Member Avatar for jwenting
0
164
Member Avatar for jwenting

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 …

Member Avatar for server_crash
0
341
Member Avatar for server_crash

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 …

Member Avatar for server_crash
0
146
Member Avatar for Kennedy_f

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

Member Avatar for jwenting
0
179
Member Avatar for asatrujesus

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 …

Member Avatar for cheenu78
0
225
Member Avatar for asatrujesus

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. …

Member Avatar for freesoft_2000
0
212
Member Avatar for gokul

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

Member Avatar for jwenting
0
213
Member Avatar for freesoft_2000
Re: Http

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 …

Member Avatar for Sauce
0
71
Member Avatar for CoolHandLuke

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

Member Avatar for compiler
0
266
Member Avatar for bsunkel

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

Member Avatar for bsunkel
0
152
Member Avatar for v2_vehooi

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

Member Avatar for server_crash
0
107
Member Avatar for server_crash

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. …

Member Avatar for SERIAL THRILLA
0
311
Member Avatar for nccliang

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

Member Avatar for Easter Bunny
0
117
Member Avatar for cheenu78

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

Member Avatar for server_crash
0
67
Member Avatar for bigriggers

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 …

Member Avatar for bigriggers
0
140
Member Avatar for yarlini

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 …

Member Avatar for server_crash
0
1K
Member Avatar for Ghost

[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 …

Member Avatar for cheenu78
0
407
Member Avatar for luisator

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

Member Avatar for stupidenator
0
147
Member Avatar for server_crash

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.

Member Avatar for server_crash
0
99
Member Avatar for saiteja

[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

Member Avatar for cheenu78
0
136

The End.